docs(openrouter-generations): sync with openrouter-web changes - #166
docs(openrouter-generations): sync with openrouter-web changes#166devin-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
GET /api/v1/generation/contentnow returns a third top-level field besideinput/output(openrouter-web#32990), so the skill's content-response documentation and printer were incomplete for failed generations.data: input: {...} - output: { completion, reasoning } + output: { completion, reasoning } # completion is null when the generation failed + error: null | { + status, message, provider_name, raw, + previous_errors: [{ code, message, provider_name, raw }] # earlier failed attempts, in order + }erroris required in the response schema and null on success. Gating is unchanged (same bearer auth, same private-logging/ZDR behavior).Changes:
SKILL.md—erroradded to "what you get back", the response-schema example (plus a failed-generation example), the content-fields table, and the "Debug a failed generation" recipe, which previously only pointed at metadata fields.scripts/get-generation-content.ts— pretty-print path prints an=== ERROR ===section (status, message, provider, previous attempts). The empty-content fallback no longer reports "ZDR" when a generation returned only a stored error.README.md— one-line description updated.Link to Devin session: https://openrouter.devinenterprise.com/sessions/a539abf3c1ef4b1b92c2420171eb412b