Skip to content

Commit

Permalink
Let the agent talk while there's pre-set param. (#4423)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

#4385

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
KevinHuSh authored Jan 9, 2025
1 parent f86d890 commit f892d7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/apps/sdk/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']}")
Expand Down

0 comments on commit f892d7d

Please sign in to comment.