Update app.py
Browse files
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 **{
|
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 `{
|
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")
|