Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Let the agent talk while there's pre-set param. (#4423)

Kevin Huf892d7d426d6
diff --git a/api/apps/sdk/session.py b/api/apps/sdk/session.py
index f6d083eb16..3d8941e882 100644
--- a/api/apps/sdk/session.py
+++ b/api/apps/sdk/session.py
@@ -170,9 +170,9 @@ def agent_completions(tenant_id, agent_id):
dsl = cvs[0].dsl
if not isinstance(dsl, str):
dsl = json.dumps(dsl)
- canvas = Canvas(dsl, tenant_id)
- if canvas.get_preset_param():
- req["question"] = ""
+ #canvas = Canvas(dsl, tenant_id)
+ #if canvas.get_preset_param():
+ # req["question"] = ""
conv = API4ConversationService.query(id=req["session_id"], dialog_id=agent_id)
if not conv:
return get_error_data_result(f"You don't own the session {req['session_id']}")