AppleBotzz commited on
Commit
97b167d
·
verified ·
1 Parent(s): a7c1aeb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def generate_response(endpoint, api_key, model, user_prompt):
29
  client = OpenAI(api_key=api_key, base_url=endpoint)
30
  system_prompt_path = __file__.replace("app.py", "json.txt")
31
  else:
32
- print("Invalid API key")
33
  return "Invalid API key", "Invalid API key", None
34
  else:
35
  if model in claude_models:
 
29
  client = OpenAI(api_key=api_key, base_url=endpoint)
30
  system_prompt_path = __file__.replace("app.py", "json.txt")
31
  else:
32
+ print(f"Invalid API key: {api_key}")
33
  return "Invalid API key", "Invalid API key", None
34
  else:
35
  if model in claude_models: