You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every "Generate (spec change merged)" run since the intern chat endpoint landed (openrouter-web#43374, spec update #867) fails in Compile SDK, so no Python release has shipped since 1.1.156 and Decisions is missing from PyPI and the Python docs:
src/openrouter/interns.py:2060: Incompatible return value type (got "EventStream[InternChatCompletionChunk]", expected "InternChatCompletionChunk")
createInternChatCompletion is the only operation in the spec whose 200 declares text/event-stream alone. With sseFlatResponse: true, the Python generator (pinned 1.787.0) annotates chat() as returning the flattened chunk while emitting an EventStream body. TypeScript and Go generate the same operation correctly.
This adds a Python-only overlay that declares an application/json sibling on that 200 pointing at the same InternChatCompletionChunk schema. The generator then produces the supported SSE-overload shape:
Runtime behaviour is unchanged (stream=True is required, the server always streams). The public spec stays SSE-only, so the TS and Go SDKs are untouched. Supersedes openrouter-web#44455, which made the same change in the public spec and would have widened the TS return type.
Tried and rejected: x-speakeasy-sse-overload: false on the operation and inferSSEOverload: false in gen.yaml both leave the error in place with 1.787.0, so the trigger is the flat SSE response path, not overload inference.
Note: merging this does not trigger generation on its own (that workflow filters on in.openapi.yaml). The nightly Generate run or a manual workflow_dispatch will produce the release PR.
Verification
speakeasy run -t open-router --skip-versioning with the pinned 1.787.0 on this branch: generation succeeds, mypy src/openrouter and pyright src/openrouter report no issues (902 files). Same command on main reproduces the CI error.
I'll be helping with this pull request! Here's what you should know:
✅ I will automatically:
Address comments on this PR that start with 'DevinAI' or '@devin'.
Look at CI failures and help fix them
Note: I can only respond to comments from users who have write access to this repository.
⚙️ Control Options:
Disable automatic comment, CI, and merge conflict monitoring
Original prompt from Christine
SYSTEM:
<latest_message>
Christine Chen (U0B8QM7RKLL) [ts=1789686258.156009]: @Devin look into why ts and python sdks aren't enabled
</latest_message>
=== BEGIN THREAD HISTORY (in #proj-jev) ===
Abhinav Pola (U090K0G7JF3) [ts=1789682735.294299]: LETSSS GOOO
> Real request works. typesafe/jev-1.13 → HTTP 200, provider TypeSafe, one noul answer (0.97), usage 289 in / 21 out, cost 0.000012138 (exactly 289 × 4.2e-8, so pricing is live). Same result for the dated permaslug.
Jacky Liang (U0AUY9BQV18) [ts=1789682862.355109]: this is on openrouter yeah?
Abhinav Pola (U090K0G7JF3) [ts=1789682867.572409]: yup
Abhinav Pola (U090K0G7JF3) [ts=1789682874.528679]: private endpoint (only our org can use it)
Ayush Patel (U0B8L6RNMA9) [ts=1789683251.473799]: aside i wonder why they opted for that model naming, i hope they dont just release a shit ton of minor versions
they do jev-latest in their docs maybe to point people to not use jev-1.13 specifically
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Every "Generate (spec change merged)" run since the intern chat endpoint landed (openrouter-web#43374, spec update #867) fails in Compile SDK, so no Python release has shipped since 1.1.156 and Decisions is missing from PyPI and the Python docs:
createInternChatCompletionis the only operation in the spec whose 200 declarestext/event-streamalone. WithsseFlatResponse: true, the Python generator (pinned 1.787.0) annotateschat()as returning the flattened chunk while emitting anEventStreambody. TypeScript and Go generate the same operation correctly.This adds a Python-only overlay that declares an
application/jsonsibling on that 200 pointing at the sameInternChatCompletionChunkschema. The generator then produces the supported SSE-overload shape:Runtime behaviour is unchanged (
stream=Trueis required, the server always streams). The public spec stays SSE-only, so the TS and Go SDKs are untouched. Supersedes openrouter-web#44455, which made the same change in the public spec and would have widened the TS return type.Tried and rejected:
x-speakeasy-sse-overload: falseon the operation andinferSSEOverload: falseingen.yamlboth leave the error in place with 1.787.0, so the trigger is the flat SSE response path, not overload inference.Note: merging this does not trigger generation on its own (that workflow filters on
in.openapi.yaml). The nightly Generate run or a manualworkflow_dispatchwill produce the release PR.Verification
speakeasy run -t open-router --skip-versioningwith the pinned 1.787.0 on this branch: generation succeeds,mypy src/openrouterandpyright src/openrouterreport no issues (902 files). Same command onmainreproduces the CI error.Searched existing PRs: none address this.
Link to Devin session: https://openrouter.devinenterprise.com/sessions/3f706d7e7e6f4a1dbe42eef374519a68
Open in Devin Desktop: https://openrouter.devinenterprise.com/desktop/session/3f706d7e7e6f4a1dbe42eef374519a68?variant=devin
Requested by: @christineschen