docs(openrouter-images): sync with openrouter-web changes#76
docs(openrouter-images): sync with openrouter-web changes#76devin-ai-integration[bot] wants to merge 1 commit into
Conversation
…identifiable 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:
|
There was a problem hiding this comment.
Perry's Review
Docs-only sync: updates the media_type contract description in SKILL.md and a doc comment in lib.ts to match openrouter-web#27306's contract flip (media_type now set whenever the format is identifiable, not just for non-PNG).
Verdict: ✅ LGTM
Details
Risk: 🟢 Low
CI: all checks pending/none required; no failures
Findings: none — verified against openrouter-web commit 518f0b0457 (#27306): the response schema, route handler, and media_type contract all match the new docs. saveImage() in scripts/lib.ts is functionally unchanged (doc comment only), confirmed by diffing against the pre-PR version.
Research: cross-checked openrouter-web's image-generation response schema and image-generation route handler at the referenced PR's merge commit — the new docs accurately describe the shipped contract.
Security: no concerns — docs/comments only, no code paths changed
Test coverage: n/a — no behavior change
Unresolved threads: none
Review: tier=trivial · model=claude-sonnet-latest · score=0.1
Summary
openrouter-web #27306 flipped the
media_typecontract onPOST /api/v1/imagesoutput: it's now present whenever the format is identifiable (includingimage/png), and omitted only when the format couldn't be determined. Previously it was omitted for PNG and only set for vector outputs like SVG.media_typeto the sample responsesaveImagedoc comment inscripts/lib.ts(behavior unchanged — extension already followedmedia_typewhen present)Link to Devin session: https://openrouter.devinenterprise.com/sessions/a07b68fd118d4ef09bc088001c9bbde3