Skip to content

Commit

Permalink
update error message for video
Browse files Browse the repository at this point in the history
  • Loading branch information
abi committed Mar 19, 2024
1 parent b57f34d commit 62272e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/routes/generate_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ async def process_chunk(content: str):
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")

Expand Down

0 comments on commit 62272e3

Please sign in to comment.