Skip to content

Commit f7b1c4b

Browse files
committed
Sync Workers AI model schemas from API
- glm-4.7-flash: add chat_template_kwargs (thinking toggle) - llama-3.2-11b-vision-instruct: remove tool_call_id pattern regex - llama-3.2-3b-instruct: update context_window 128000 -> 80000 - llama-4-scout-17b-16e-instruct: remove tool_call_id pattern regex - mistral-small-3.1-24b-instruct: remove tool_call_id pattern regex - qwq-32b: remove tool_call_id pattern regex - nemotron-3-120b-a12b: update context_window 32000 -> 256000, expand schema to full OpenAI-compatible format (pricing preserved)
1 parent 420374f commit f7b1c4b

File tree

7 files changed

+2499
-308
lines changed

7 files changed

+2499
-308
lines changed

src/content/workers-ai-models/glm-4.7-flash.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,21 @@
291291
],
292292
"description": "Constrains effort on reasoning for reasoning models (o1, o3-mini, etc.)."
293293
},
294+
"chat_template_kwargs": {
295+
"type": "object",
296+
"properties": {
297+
"enable_thinking": {
298+
"type": "boolean",
299+
"default": true,
300+
"description": "Wether to enable reasoning, enabled by default."
301+
},
302+
"clear_thinking": {
303+
"type": "boolean",
304+
"default": false,
305+
"description": "If false, preserves reasoning context between turns."
306+
}
307+
}
308+
},
294309
"response_format": {
295310
"anyOf": [
296311
{
@@ -1533,6 +1548,21 @@
15331548
],
15341549
"description": "Constrains effort on reasoning for reasoning models (o1, o3-mini, etc.)."
15351550
},
1551+
"chat_template_kwargs": {
1552+
"type": "object",
1553+
"properties": {
1554+
"enable_thinking": {
1555+
"type": "boolean",
1556+
"default": true,
1557+
"description": "Wether to enable reasoning, enabled by default."
1558+
},
1559+
"clear_thinking": {
1560+
"type": "boolean",
1561+
"default": false,
1562+
"description": "If false, preserves reasoning context between turns."
1563+
}
1564+
}
1565+
},
15361566
"response_format": {
15371567
"anyOf": [
15381568
{

src/content/workers-ai-models/llama-3.2-11b-vision-instruct.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@
151151
},
152152
"tool_call_id": {
153153
"type": "string",
154-
"description": "The tool call id. Must be supplied for tool calls for Mistral-3. If you don't know what to put here you can fall back to 000000001",
155-
"pattern": "[a-zA-Z0-9]{9}"
154+
"description": "The tool call id. Must be supplied for tool calls for Mistral-3. If you don't know what to put here you can fall back to 000000001"
156155
},
157156
"content": {
158157
"oneOf": [

src/content/workers-ai-models/llama-3.2-3b-instruct.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
{
3030
"property_id": "context_window",
31-
"value": "128000"
31+
"value": "80000"
3232
},
3333
{
3434
"property_id": "terms",

src/content/workers-ai-models/llama-4-scout-17b-16e-instruct.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@
151151
},
152152
"tool_call_id": {
153153
"type": "string",
154-
"description": "The tool call id. If you don't know what to put here you can fall back to 000000001",
155-
"pattern": "[a-zA-Z0-9]{9}"
154+
"description": "The tool call id. If you don't know what to put here you can fall back to 000000001"
156155
},
157156
"content": {
158157
"oneOf": [

src/content/workers-ai-models/mistral-small-3.1-24b-instruct.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@
129129
},
130130
"tool_call_id": {
131131
"type": "string",
132-
"description": "The tool call id. Must be supplied for tool calls for Mistral-3. If you don't know what to put here you can fall back to 000000001",
133-
"pattern": "[a-zA-Z0-9]{9}"
132+
"description": "The tool call id. Must be supplied for tool calls for Mistral-3. If you don't know what to put here you can fall back to 000000001"
134133
},
135134
"content": {
136135
"oneOf": [

0 commit comments

Comments
 (0)