Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -527,8 +527,8 @@ def generate(
|
|
527 |
return
|
528 |
|
529 |
# --- rAgent Reasoning branch ---
|
530 |
-
if text.strip().lower().startswith("@
|
531 |
-
prompt = text[len("@
|
532 |
yield "📝 Initiating reasoning chain using Llama mode..."
|
533 |
# Pass the current chat history (cleaned) to help inform the chain.
|
534 |
for partial in ragent_reasoning(prompt, clean_chat_history(chat_history)):
|
|
|
527 |
return
|
528 |
|
529 |
# --- rAgent Reasoning branch ---
|
530 |
+
if text.strip().lower().startswith("@ragent"):
|
531 |
+
prompt = text[len("@ragent"):].strip()
|
532 |
yield "📝 Initiating reasoning chain using Llama mode..."
|
533 |
# Pass the current chat history (cleaned) to help inform the chain.
|
534 |
for partial in ragent_reasoning(prompt, clean_chat_history(chat_history)):
|