update error message from anthropic
This commit is contained in:
parent
4b908d8aae
commit
a7e51f6f1a
@ -212,7 +212,7 @@ async def stream_code(websocket: WebSocket):
|
|||||||
if code_generation_model == "claude_3_sonnet":
|
if code_generation_model == "claude_3_sonnet":
|
||||||
if not ANTHROPIC_API_KEY:
|
if not ANTHROPIC_API_KEY:
|
||||||
await throw_error(
|
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")
|
raise Exception("No Anthropic key")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user