docs(openrouter-typescript-sdk): sync with openrouter-web changes - #107
docs(openrouter-typescript-sdk): sync with openrouter-web changes#107devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Original prompt from Automation
|
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Summary
openrouter-web #30116 made 402/429 responses machine-readable by attaching
limit_source+remedy_hinttoerror.metadatain the public error body. The skill's error-handling section only told callers to "add credits" / "back off", with no way to distinguish an OpenRouter free-tier cap from a provider shared-pool limit or a key-level limit.Added a
limit_sourceenum +remedy_hinttype and updated the 402/429 rows of the status-code table. The accessor is spellederror.error.metadata(verified against the generated SDK'sOpenRouterError/PaymentRequiredResponseErrorData— there is no top-levelerror.metadata), and both fields are documented as optional since not all limit errors are classified.Link to Devin session: https://openrouter.devinenterprise.com/sessions/9c3a2887dd504a129f52958926b2b4d6