fix bug where open AI key is required to use it with Anthropic
This commit is contained in:
parent
62272e3a68
commit
7f44228a95
@ -119,7 +119,7 @@ async def stream_code(websocket: WebSocket):
|
|||||||
if openai_api_key:
|
if openai_api_key:
|
||||||
print("Using OpenAI API key from environment variable")
|
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")
|
print("OpenAI API key not found")
|
||||||
await websocket.send_json(
|
await websocket.send_json(
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user