Kevin Hu
commited on
Commit
·
e547053
1
Parent(s):
96bcfec
Let the agent talk while there's pre-set param. (#4423)
Browse files### What problem does this PR solve?
#4385
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
- api/apps/sdk/session.py +3 -3
api/apps/sdk/session.py
CHANGED
@@ -170,9 +170,9 @@ def agent_completions(tenant_id, agent_id):
|
|
170 |
dsl = cvs[0].dsl
|
171 |
if not isinstance(dsl, str):
|
172 |
dsl = json.dumps(dsl)
|
173 |
-
canvas = Canvas(dsl, tenant_id)
|
174 |
-
if canvas.get_preset_param():
|
175 |
-
|
176 |
conv = API4ConversationService.query(id=req["session_id"], dialog_id=agent_id)
|
177 |
if not conv:
|
178 |
return get_error_data_result(f"You don't own the session {req['session_id']}")
|
|
|
170 |
dsl = cvs[0].dsl
|
171 |
if not isinstance(dsl, str):
|
172 |
dsl = json.dumps(dsl)
|
173 |
+
#canvas = Canvas(dsl, tenant_id)
|
174 |
+
#if canvas.get_preset_param():
|
175 |
+
# req["question"] = ""
|
176 |
conv = API4ConversationService.query(id=req["session_id"], dialog_id=agent_id)
|
177 |
if not conv:
|
178 |
return get_error_data_result(f"You don't own the session {req['session_id']}")
|