Fix parameter name error. (#4312)

### What problem does this PR solve?

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu 2024-12-31 17:38:01 +08:00 committed by GitHub
parent 419b546f03
commit 5071df9de1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,7 +79,7 @@ def completion(tenant_id, agent_id, question, session_id=None, stream=True, **kw
conv = {
"id": session_id,
"dialog_id": cvs.id,
"user_id": kwargs.get("usr_id", "") if isinstance(kwargs, dict) else "",
"user_id": kwargs.get("user_id", "") if isinstance(kwargs, dict) else "",
"message": [{"role": "assistant", "content": canvas.get_prologue()}],
"source": "agent",
"dsl": cvs.dsl