From b66bbbf3deda747cc08b8af23eb665a5c0d8a246 Mon Sep 17 00:00:00 2001 From: dhunganapramod9 Date: Sat, 28 Feb 2026 01:06:42 -0500 Subject: [PATCH] fix(chat_web): correct role validation error message to match allowed roles --- scripts/chat_web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/chat_web.py b/scripts/chat_web.py index 66d7806..360f1a0 100644 --- a/scripts/chat_web.py +++ b/scripts/chat_web.py @@ -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