fix(app): Lock the conversation with the application dialogue

This commit is contained in:
Timebomb2018
2026-02-28 14:01:49 +08:00
parent cb6a3aae9e
commit 5f211620c5
2 changed files with 32 additions and 2 deletions

View File

@@ -89,7 +89,6 @@ async def chat(
body = await request.json()
payload = AppChatRequest(**body)
other_id = payload.user_id
app = app_service.get_app(api_key_auth.resource_id, api_key_auth.workspace_id)
other_id = payload.user_id
workspace_id = app.workspace_id
@@ -135,7 +134,8 @@ async def chat(
app_id=app.id,
workspace_id=workspace_id,
user_id=end_user_id,
is_draft=False
is_draft=False,
conversation_id=payload.conversation_id
)
if app_type == AppType.AGENT: