Skip to content

Commit

Permalink
fix bug where open AI key is required to use it with Anthropic
Browse files Browse the repository at this point in the history
  • Loading branch information
abi committed Mar 19, 2024
1 parent 62272e3 commit 7f44228
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 @@ -119,7 +119,7 @@ async def throw_error(
if openai_api_key:
print("Using OpenAI API key from environment variable")

if not openai_api_key:
if not openai_api_key and code_generation_model == "gpt_4_vision":
print("OpenAI API key not found")
await websocket.send_json(
{
Expand Down

0 comments on commit 7f44228

Please sign in to comment.