milwright commited on
Commit
be8b3db
Β·
verified Β·
1 Parent(s): 7404ace

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -346,7 +346,7 @@ def generate_response(message, history):
346
  error_msg = f"πŸ” **Authentication Error**\n\n"
347
  error_msg += f"Your API key appears to be invalid or expired.\n\n"
348
  error_msg += f"**Troubleshooting:**\n"
349
- error_msg += f"1. Check that your **{api_key_var}** secret is set correctly\n"
350
  error_msg += f"2. Verify your API key at: https://openrouter.ai/keys\n"
351
  error_msg += f"3. Ensure your key starts with `sk-or-`\n"
352
  error_msg += f"4. Check that you have credits on your OpenRouter account"
@@ -492,7 +492,7 @@ def get_configuration_status():
492
  if API_KEY_VALID:
493
  status_parts.append("βœ… **API Key:** Configured and valid")
494
  else:
495
- status_parts.append("❌ **API Key:** Not configured - Set `{api_key_var}` in Space secrets")
496
 
497
  status_parts.append(f"πŸ€– **Model:** {MODEL}")
498
  status_parts.append(f"🌑️ **Temperature:** 0.7")
 
346
  error_msg = f"πŸ” **Authentication Error**\n\n"
347
  error_msg += f"Your API key appears to be invalid or expired.\n\n"
348
  error_msg += f"**Troubleshooting:**\n"
349
+ error_msg += f"1. Check that your **{OPENROUTER_API_KEY}** is set correctly\n"
350
  error_msg += f"2. Verify your API key at: https://openrouter.ai/keys\n"
351
  error_msg += f"3. Ensure your key starts with `sk-or-`\n"
352
  error_msg += f"4. Check that you have credits on your OpenRouter account"
 
492
  if API_KEY_VALID:
493
  status_parts.append("βœ… **API Key:** Configured and valid")
494
  else:
495
+ status_parts.append("❌ **API Key:** Not configured - Set `{OPENROUTER_API_KEY}` in Space secrets")
496
 
497
  status_parts.append(f"πŸ€– **Model:** {MODEL}")
498
  status_parts.append(f"🌑️ **Temperature:** 0.7")