From a197bd9223ed466b97df27b5f68781b0451e4ab5 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Wed, 10 Apr 2024 13:43:13 -0400 Subject: [PATCH] update error message --- backend/routes/generate_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/routes/generate_code.py b/backend/routes/generate_code.py index 3f8c2c5..29842bd 100644 --- a/backend/routes/generate_code.py +++ b/backend/routes/generate_code.py @@ -159,7 +159,7 @@ async def stream_code(websocket: WebSocket): if not openai_api_key and code_generation_model == "gpt_4_vision": print("OpenAI API key not found") await throw_error( - "No OpenAI API key found. Please add your API key in the settings dialog or add it to backend/.env file. If you add it to .env, make sure to restart the backend server." + "Please subscribe to a paid plan to generate code. If you are a subscriber and seeing this error, please contact support." ) raise Exception("No OpenAI API key found")