Skip to content

Commit 4125567

Browse files
committed
updates llamaguard-3 schema
1 parent c04ee70 commit 4125567

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

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

0 commit comments

Comments
 (0)