Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -181,7 +181,7 @@ class VisitWebpageTool(Tool):
|
|
| 181 |
except Exception as e:
|
| 182 |
return f"An unexpected error occurred: {str(e)}"
|
| 183 |
|
| 184 |
-
#
|
| 185 |
|
| 186 |
from openai import OpenAI
|
| 187 |
|
|
@@ -496,7 +496,7 @@ def generate(
|
|
| 496 |
# --- rAgent Reasoning branch ---
|
| 497 |
if text.strip().lower().startswith("@ragent"):
|
| 498 |
prompt = text[len("@ragent"):].strip()
|
| 499 |
-
yield "Initiating reasoning chain using Llama mode..."
|
| 500 |
# Pass the current chat history (cleaned) to help inform the chain.
|
| 501 |
for partial in ragent_reasoning(prompt, clean_chat_history(chat_history)):
|
| 502 |
yield partial
|
|
|
|
| 181 |
except Exception as e:
|
| 182 |
return f"An unexpected error occurred: {str(e)}"
|
| 183 |
|
| 184 |
+
# rAgent Reasoning using Llama mode OpenAI
|
| 185 |
|
| 186 |
from openai import OpenAI
|
| 187 |
|
|
|
|
| 496 |
# --- rAgent Reasoning branch ---
|
| 497 |
if text.strip().lower().startswith("@ragent"):
|
| 498 |
prompt = text[len("@ragent"):].strip()
|
| 499 |
+
yield "📝 Initiating reasoning chain using Llama mode..."
|
| 500 |
# Pass the current chat history (cleaned) to help inform the chain.
|
| 501 |
for partial in ragent_reasoning(prompt, clean_chat_history(chat_history)):
|
| 502 |
yield partial
|