Show OpenAI SDK examples for gpt-oss and qwen35 - #5662
Merged
Conversation
Those three models now return string content on /v1/chat/completions. /models can show the OpenAI SDK examples that were hidden. The docs warning names Gemini 3.x and Claude 5 as the remaining array-content cases.
andrelandgraf
requested review from
danieltprice,
philip and
ruf-io
as code owners
August 27, 2026 22:20
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
philip
approved these changes
Aug 27, 2026
philip
left a comment
Collaborator
There was a problem hiding this comment.
Tested, all looks good 👍
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
The latest chat-completions measurement records
gpt-oss-20b,gpt-oss-120b, andqwen35-122b-a10bas conforming:message.contentis a string anddeviationsis empty.The site still classified all three as
array-content./modelsand neon.com/models therefore omitted their TypeScript and Python OpenAI SDK examples. The docs warning also listed two of these models as returning array content.Diagnosis
The example selector excludes OpenAI SDK snippets when
capabilities.chatisarray-content, because those SDKs typemessage.contentas a string. The stale capability records activated that branch for these three models.The refreshed measurement still records array content for Gemini 3.x and Claude 5. Those are now the model groups named in the warning.
Solution
gpt-oss-20b,gpt-oss-120b, andqwen35-122b-a10basconformswith no deviations./modelsand the model page expose AI SDK, Mastra, TypeScript, Python, and cURL examples for each model.The
/modelsresponse structure and existing example templates remain unchanged. These models now select the conforming example set.User-facing API/UI
GET /models?model=gpt-oss-20bnow includes these relevant fields:{ "use_case": "chat", "model": { "id": "gpt-oss-20b", "capabilities": { "entitled": true, "chat": "conforms", "deviations": [], "native_dialect": "none", "responses": false, "web_search": false, "image_generation": false }, "examples": [ { "id": "ai-sdk", "endpoint": "/v1/chat/completions (via provider)" }, { "id": "mastra", "endpoint": "/v1/chat/completions" }, { "id": "typescript", "endpoint": "/v1/chat/completions" }, { "id": "python", "endpoint": "/v1/chat/completions" }, { "id": "curl", "endpoint": "/v1/chat/completions" } ] } }The same example set applies to
gpt-oss-120bandqwen35-122b-a10b. Their model pages now offer AI SDK, Mastra, TypeScript, Python, and cURL in the language dropdown.The docs warning ships as:
Usage examples
Replace the model ID with
gpt-oss-120borqwen35-122b-a10bfor the other two models.Verification
route.test.js,model-examples.test.js,generate-ai-gateway-model-markdown.test.js, andmodel-rows.test.js: 42 passed.npm run check:models-endpoint-sync: 42 models in sync.Gaps
Live gateway output and the deployed model pages were not rechecked from this website worktree. The update relies on the committed conformance measurement and automated route/UI coverage. Gemini 3.x and Claude 5 still return array
contenton/v1/chat/completions; their OpenAI SDK examples stay hidden from the language dropdown.