mirror of
https://github.com/karpathy/nanochat.git
synced 2026-04-02 05:35:19 +00:00
Merge b6899d5230 into 5019accc5b
This commit is contained in:
commit
a47ea9524a
|
|
@ -186,7 +186,7 @@ def validate_chat_request(request: ChatRequest):
|
|||
if message.role not in ["user", "assistant"]:
|
||||
raise HTTPException(
|
||||
status_code=400,
|
||||
detail=f"Message {i} has invalid role. Must be 'user', 'assistant', or 'system'"
|
||||
detail=f"Message {i} has invalid role. Must be 'user' or 'assistant'."
|
||||
)
|
||||
|
||||
# Validate temperature
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user