Skip to content

Commit

Permalink
Merge pull request #3 from julep-ai/creatorrr/restrict-role-values
Browse files Browse the repository at this point in the history
Restrict role values in chatml-schema
  • Loading branch information
creatorrr authored May 27, 2024
2 parents d0c914c + 12bdbd6 commit dbb15e6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions specs/chatml-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@
"type": "object",
"properties": {
"role": {
"type": "string"
"type": "string",
"enum": [
"system",
"user",
"assistant",
"tool_calls",
"tool_response"
]
},
"name": {
"type": "string"
Expand All @@ -20,5 +27,5 @@
]
}
},
"required": ["role", "name", "content"]
"required": ["role", "content"]
}

0 comments on commit dbb15e6

Please sign in to comment.