Skip to content

Commit 0174789

Browse files
committed
adds maxLength limit
1 parent 4125567 commit 0174789

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/content/workers-ai-models/llama-guard-3-8b.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@
2121
"type": "object",
2222
"properties": {
2323
"role": {
24-
"enum": [
25-
"user",
26-
"assistant"
27-
],
28-
"description": "The role of the message sender must alternate between 'user' and 'assistant'."
24+
"type": "string",
25+
"description": "The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool')."
2926
},
3027
"content": {
3128
"type": "string",
29+
"maxLength": 131072,
3230
"description": "The content of the message as a string."
3331
}
3432
},

0 commit comments

Comments
 (0)