docs(openrouter-models): sync with openrouter-web changes - #179
docs(openrouter-models): sync with openrouter-web changes#179devin-ai-integration[bot] wants to merge 1 commit into
Conversation
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
Documents the new
supports_tool_choicefield that the public endpoints route (GET /api/v1/models/{author}/{slug}/endpoints) now returns, from openrouter-web #38118.The field is a per-variant capability object rather than a boolean:
The distinction that matters for the skill:
tool_choiceappearing insupported_parametersonly means the endpoint accepts the parameter, not that it accepts every value. A request using an unsupported variant is routed away from the endpoint, and 404s whenprovider.require_parameterspins routing to it. The skill previously taughtsupported_parametersas the only capability check.Changes: endpoint field list, response-shape tips,
get-endpoints.tsoutput example and key-fields table, plus the script now passes the field through (?? null, since older catalog blobs may omit it).Existing-PR search:
gh pr list --state all --search "openrouter-models"— the openopenrouter-modelssync PRs (#174, #105, #86, #77, #73, #67, #63) cover unrelated topics (#174 ismax_completion_tokenssemantics), so none were reusable.Verification: static review against the openrouter-web source diff (
packages/llm-interfaces/public-endpoint-schema.ts,services/cfw-public-api/src/routes/endpoints/,projects/docs/openapi/openapi.yaml). No live API call was made against the endpoints route.Link to Devin session: https://openrouter.devinenterprise.com/sessions/1dffde2347ef481d96f895cffe6a9dcc
Open in Devin Desktop: https://openrouter.devinenterprise.com/desktop/session/1dffde2347ef481d96f895cffe6a9dcc?variant=devin