From 62272e3a68361222e1f5da948f6ff5be7deeeee3 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Tue, 19 Mar 2024 13:51:30 -0400 Subject: [PATCH] update error message for video --- backend/routes/generate_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/routes/generate_code.py b/backend/routes/generate_code.py index 2d82aca..b2e55cc 100644 --- a/backend/routes/generate_code.py +++ b/backend/routes/generate_code.py @@ -230,7 +230,7 @@ async def stream_code(websocket: WebSocket): if validated_input_mode == "video": if not ANTHROPIC_API_KEY: await throw_error( - "No Anthropic API key found. Please add the environment variable ANTHROPIC_API_KEY to backend/.env" + "Video only works with Anthropic models. No Anthropic API key found. Please add the environment variable ANTHROPIC_API_KEY to backend/.env" ) raise Exception("No Anthropic key")