Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -67,9 +67,9 @@ def parse_response(response):
|
|
67 |
|
68 |
def process_chat(message, history, model, system_prompt, thinking_budget, api_key):
|
69 |
print(f"Received message: {message}")
|
70 |
-
if not api_key:
|
71 |
-
|
72 |
-
|
73 |
|
74 |
try:
|
75 |
formatted_system_prompt = system_prompt.format(budget=thinking_budget)
|
|
|
67 |
|
68 |
def process_chat(message, history, model, system_prompt, thinking_budget, api_key):
|
69 |
print(f"Received message: {message}")
|
70 |
+
#if not api_key:
|
71 |
+
# print("API key missing")
|
72 |
+
# return "Please provide your API Key before starting the chat."
|
73 |
|
74 |
try:
|
75 |
formatted_system_prompt = system_prompt.format(budget=thinking_budget)
|