update models catalog in docs#30998
Conversation
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
There was a problem hiding this comment.
PR description is empty. Please add a brief summary of what changed (new models, removed example outputs, added curl snippets).
HIGH — New curl snippets systematically mismatch their example input blocks across text-generation models:
max_completion_tokens: 8192is hardcoded in manycurlsnippets while the exampleinputusesmax_tokens: 500or300.temperatureis present ininputand TypeScript but omitted from manycurlsnippets.
See inline comments on representative examples.
MEDIUM — openai-gpt-5.4-pro.json still contains output/raw_response objects while the rest of the OpenAI catalog was stripped of them in this PR. If the intent was a bulk cleanup, this file may have been missed.
| { | ||
| "label": "curl", | ||
| "language": "bash", | ||
| "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/responses \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"openai/gpt-5\",\n \"messages\": [\n {\n \"content\": \"You are a helpful coding assistant specializing in Python.\",\n \"role\": \"system\"\n },\n {\n \"content\": \"How do I read a JSON file in Python?\",\n \"role\": \"user\"\n }\n ]\n}'" |
There was a problem hiding this comment.
Missing temperature: 0.3 in the curl snippet — it is present in the input block above.
| { | ||
| "label": "curl", | ||
| "language": "bash", | ||
| "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/responses \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"openai/gpt-5\",\n \"max_completion_tokens\": 8192,\n \"messages\": [\n {\n \"content\": \"I need help planning a road trip from San Francisco to Los Angeles.\",\n \"role\": \"user\"\n },\n {\n \"content\": \"I'd be happy to help! The drive is about 380 miles and takes roughly 5-6 hours. Would you like suggestions for scenic routes or interesting stops along the way?\",\n \"role\": \"assistant\"\n },\n {\n \"content\": \"Yes, what are some good places to stop?\",\n \"role\": \"user\"\n }\n ]\n}'" |
There was a problem hiding this comment.
The curl snippet uses max_completion_tokens: 8192, but the example input specifies max_tokens: 500.
| { | ||
| "label": "curl", | ||
| "language": "bash", | ||
| "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/responses \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"openai/gpt-5\",\n \"max_completion_tokens\": 8192,\n \"messages\": [\n {\n \"content\": \"Write a short story opening about a detective finding an unusual clue.\",\n \"role\": \"user\"\n }\n ]\n}'" |
There was a problem hiding this comment.
The curl snippet uses max_completion_tokens: 8192, but the example input specifies max_tokens: 300 and temperature: 0.8.
| { | ||
| "label": "curl", | ||
| "language": "bash", | ||
| "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/chat/completions \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"alibaba/qwen3.5-397b-a17b\",\n \"messages\": [\n {\n \"content\": \"You are a helpful coding assistant specializing in Python.\",\n \"role\": \"system\"\n },\n {\n \"content\": \"How do I read a JSON file in Python?\",\n \"role\": \"user\"\n }\n ]\n}'" |
There was a problem hiding this comment.
Missing temperature: 0.3 in the curl snippet — it is present in the input block above.
| { | ||
| "label": "curl", | ||
| "language": "bash", | ||
| "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/chat/completions \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"alibaba/qwen3.5-397b-a17b\",\n \"max_completion_tokens\": 8192,\n \"messages\": [\n {\n \"content\": \"I need help planning a road trip from San Francisco to Los Angeles.\",\n \"role\": \"user\"\n },\n {\n \"content\": \"I'd be happy to help! The drive is about 380 miles and takes roughly 5-6 hours. Would you like suggestions for scenic routes or interesting stops along the way?\",\n \"role\": \"assistant\"\n },\n {\n \"content\": \"Yes, what are some good places to stop?\",\n \"role\": \"user\"\n }\n ]\n}'" |
There was a problem hiding this comment.
The curl snippet uses max_completion_tokens: 8192, but the example input specifies max_tokens: 500.
| { | ||
| "label": "curl", | ||
| "language": "bash", | ||
| "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/chat/completions \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"alibaba/qwen3.5-397b-a17b\",\n \"max_completion_tokens\": 8192,\n \"messages\": [\n {\n \"content\": \"Write a short story opening about a detective finding an unusual clue.\",\n \"role\": \"user\"\n }\n ]\n}'" |
There was a problem hiding this comment.
The curl snippet uses max_completion_tokens: 8192, but the example input specifies max_tokens: 300 and temperature: 0.8.
| { | ||
| "label": "curl", | ||
| "language": "bash", | ||
| "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/messages \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"anthropic/claude-opus-4.7\",\n \"max_tokens\": 1024,\n \"messages\": [\n {\n \"content\": \"How do I read a JSON file in Python?\",\n \"role\": \"user\"\n }\n ],\n \"system\": \"You are a helpful coding assistant specializing in Python.\"\n}'" |
There was a problem hiding this comment.
Missing temperature: 0.3 in the curl snippet — it is present in the input block above.
|
Labels applied: What this PR changesThis is a bulk update of 64 catalog model JSON files in
Issues flaggedHIGH — Empty PR description HIGH —
I posted 7 inline review comments on representative files ( MEDIUM — Possible bulk-cleanup omission LOW — No changelog needed |
|
Preview URL: https://e90f9c56.preview.developers.cloudflare.com |
Summary
Screenshots (optional)
Documentation checklist