fix bug where open AI key is required to use it with Anthropic

This commit is contained in:
Abi Raja 2024-03-19 13:57:57 -04:00
parent 62272e3a68
commit 7f44228a95

View File

@ -119,7 +119,7 @@ async def stream_code(websocket: WebSocket):
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(
{