mirror of
https://github.com/karpathy/nanochat.git
synced 2026-07-07 13:29:18 +00:00
Merge b6899d5230 into 83dccc20ae
This commit is contained in:
commit
fb464693ef
|
|
@ -193,7 +193,7 @@ def validate_chat_request(request: ChatRequest):
|
||||||
if message.role not in ["user", "assistant"]:
|
if message.role not in ["user", "assistant"]:
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=400,
|
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
|
# Validate temperature
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user