mirror of
https://github.com/karpathy/nanochat.git
synced 2026-07-09 06:19:13 +00:00
Compare commits
3 Commits
b61dc68acc
...
fb464693ef
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fb464693ef | ||
|
|
b6899d5230 | ||
|
|
57bcf6786e |
|
|
@ -193,7 +193,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