Skip to content

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

Python

update error message from anthropic

Abi Rajaa7e51f6f1ab9
diff --git a/backend/routes/generate_code.py b/backend/routes/generate_code.py
index 589be2d9..d90e82cf 100644
--- a/backend/routes/generate_code.py
+++ b/backend/routes/generate_code.py
@@ -212,7 +212,7 @@ async def stream_code(websocket: WebSocket):
if code_generation_model == "claude_3_sonnet":
if not ANTHROPIC_API_KEY:
await throw_error(
- "No Anthropic API key found. Please add it to backend/.env"
+ "No Anthropic API key found. Please add the environment variable ANTHROPIC_API_KEY to backend/.env"
)
raise Exception("No Anthropic key")