Skip to content

Commit

Permalink
Fix agent_completion bug (#4329)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

Fix agent_completion bug  #4320

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

---------

Co-authored-by: liuhua <[email protected]>
Co-authored-by: Kevin Hu <[email protected]>
  • Loading branch information
3 people authored Jan 2, 2025
1 parent 5883493 commit df22ead
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/apps/sdk/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
from api.db.services.llm_service import LLMBundle



@manager.route('/chats/<chat_id>/sessions', methods=['POST']) # noqa: F821
@token_required
def create(tenant_id, chat_id):
Expand Down Expand Up @@ -92,6 +93,9 @@ def create_agent_session(tenant_id, agent_id):
else:
if "value" in ele:
ele.pop("value")
else:
for ans in canvas.run(stream=False):
pass
cvs.dsl = json.loads(str(canvas))
conv = {
"id": get_uuid(),
Expand Down

0 comments on commit df22ead

Please sign in to comment.