Skip to content

Commit 2e72129

Browse files
committed
[Workers AI] Model update
1 parent c21bba4 commit 2e72129

File tree

2 files changed

+71
-16
lines changed

2 files changed

+71
-16
lines changed

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

Lines changed: 67 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
"created_at": "2024-09-25 05:36:04.547",
1212
"tags": [],
1313
"properties": [
14+
{
15+
"property_id": "context_window",
16+
"value": "128000"
17+
},
1418
{
1519
"property_id": "price",
1620
"value": [
@@ -52,7 +56,7 @@
5256
"oneOf": [
5357
{
5458
"type": "array",
55-
"description": "An array of integers that represent the image data constrained to 8-bit unsigned integer values",
59+
"description": "An array of integers that represent the image data constrained to 8-bit unsigned integer values. Deprecated, use image as a part of messages now.",
5660
"items": {
5761
"type": "number",
5862
"description": "A value between 0 and 255"
@@ -61,7 +65,7 @@
6165
{
6266
"type": "string",
6367
"format": "binary",
64-
"description": "Binary string representing the image contents."
68+
"description": "Binary string representing the image contents. Deprecated, use image as a part of messages now."
6569
}
6670
]
6771
},
@@ -145,23 +149,74 @@
145149
"type": "string",
146150
"description": "The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool')."
147151
},
148-
"content": {
152+
"tool_call_id": {
149153
"type": "string",
150-
"maxLength": 131072,
151-
"description": "The content of the message as a 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}"
156+
},
157+
"content": {
158+
"oneOf": [
159+
{
160+
"type": "string",
161+
"description": "The content of the message as a string."
162+
},
163+
{
164+
"type": "array",
165+
"items": {
166+
"type": "object",
167+
"properties": {
168+
"type": {
169+
"type": "string",
170+
"description": "Type of the content provided"
171+
},
172+
"text": {
173+
"type": "string"
174+
},
175+
"image_url": {
176+
"type": "object",
177+
"properties": {
178+
"url": {
179+
"type": "string",
180+
"pattern": "^data:*",
181+
"description": "image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted"
182+
}
183+
}
184+
}
185+
}
186+
}
187+
},
188+
{
189+
"type": "object",
190+
"properties": {
191+
"type": {
192+
"type": "string",
193+
"description": "Type of the content provided"
194+
},
195+
"text": {
196+
"type": "string"
197+
},
198+
"image_url": {
199+
"type": "object",
200+
"properties": {
201+
"url": {
202+
"type": "string",
203+
"pattern": "^data:*",
204+
"description": "image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted"
205+
}
206+
}
207+
}
208+
}
209+
}
210+
]
152211
}
153-
},
154-
"required": [
155-
"role",
156-
"content"
157-
]
212+
}
158213
}
159214
},
160215
"image": {
161216
"oneOf": [
162217
{
163218
"type": "array",
164-
"description": "An array of integers that represent the image data constrained to 8-bit unsigned integer values",
219+
"description": "An array of integers that represent the image data constrained to 8-bit unsigned integer values. Deprecated, use image as a part of messages now.",
165220
"items": {
166221
"type": "number",
167222
"description": "A value between 0 and 255"
@@ -170,7 +225,7 @@
170225
{
171226
"type": "string",
172227
"format": "binary",
173-
"description": "Binary string representing the image contents."
228+
"description": "Binary string representing the image contents. Deprecated, use image as a part of messages now."
174229
}
175230
]
176231
},

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
"created_at": "2025-04-05 20:25:56.137",
1212
"tags": [],
1313
"properties": [
14+
{
15+
"property_id": "context_window",
16+
"value": "131000"
17+
},
1418
{
1519
"property_id": "price",
1620
"value": [
@@ -26,10 +30,6 @@
2630
}
2731
]
2832
},
29-
{
30-
"property_id": "context_window",
31-
"value": "131000"
32-
},
3333
{
3434
"property_id": "function_calling",
3535
"value": "true"

0 commit comments

Comments
 (0)