Spaces:
Running
Running
milwright
commited on
Commit
·
37563ca
1
Parent(s):
df4cac5
fix: show actual config values in preview mode response
Browse files
app.py
CHANGED
@@ -507,10 +507,14 @@ class SpaceGenerator:
|
|
507 |
f"Get your API key at: https://openrouter.ai/keys"
|
508 |
)
|
509 |
else:
|
510 |
-
#
|
511 |
response = (
|
512 |
-
f"[Preview Mode
|
513 |
-
f"
|
|
|
|
|
|
|
|
|
514 |
)
|
515 |
|
516 |
# Update chat history
|
|
|
507 |
f"Get your API key at: https://openrouter.ai/keys"
|
508 |
)
|
509 |
else:
|
510 |
+
# Show actual configuration being used
|
511 |
response = (
|
512 |
+
f"[Preview Mode - Configuration Active]\n\n"
|
513 |
+
f"**Model:** {config.get('model', 'Unknown')}\n"
|
514 |
+
f"**Temperature:** {config.get('temperature', 0.7)}\n"
|
515 |
+
f"**Max Tokens:** {config.get('max_tokens', 750)}\n"
|
516 |
+
f"**API Key Variable:** {config.get('api_key_var', 'Not set')}\n\n"
|
517 |
+
f"In the deployed space, this configuration will be used to generate actual responses."
|
518 |
)
|
519 |
|
520 |
# Update chat history
|