diff --git a/specs/chatml-schema.json b/specs/chatml-schema.json index bcc80ca..a3d0ba6 100644 --- a/specs/chatml-schema.json +++ b/specs/chatml-schema.json @@ -4,7 +4,14 @@ "type": "object", "properties": { "role": { - "type": "string" + "type": "string", + "enum": [ + "system", + "user", + "assistant", + "tool_calls", + "tool_response" + ] }, "name": { "type": "string" @@ -20,5 +27,5 @@ ] } }, - "required": ["role", "name", "content"] + "required": ["role", "content"] }