Fix: update broken agent completion due to v0.20.0 changes (#9309)

### What problem does this PR solve?

Update broken agent completion due to v0.20.0 changes. #9199

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Yongteng Lei
2025-08-08 10:00:16 +08:00
committed by GitHub
parent 07354f4a1a
commit 1bd64dafcb
2 changed files with 34 additions and 51 deletions

View File

@ -123,7 +123,7 @@ class UserCanvasService(CommonService):
def completion(tenant_id, agent_id, session_id=None, **kwargs):
query = kwargs.get("query", "")
query = kwargs.get("query", "") or kwargs.get("question", "")
files = kwargs.get("files", [])
inputs = kwargs.get("inputs", {})
user_id = kwargs.get("user_id", "")