Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

update error message for video

Abi Raja62272e3a6836
diff --git a/backend/routes/generate_code.py b/backend/routes/generate_code.py
index 2d82acab..b2e55cc3 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")