From ef5c7cb5aa828890148148fe53fc85108f3e79c7 Mon Sep 17 00:00:00 2001 From: zhaoqingang <zhaoqg0118@163.com> Date: 星期五, 10 一月 2025 18:09:57 +0800 Subject: [PATCH] 知识库选择返回自己创建的 --- app/service/difyService.py | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/service/difyService.py b/app/service/difyService.py index 97de46b..3c67d09 100644 --- a/app/service/difyService.py +++ b/app/service/difyService.py @@ -127,11 +127,10 @@ - async def chat(self, token: str, user_id: int, message: str, files: [], conversation_id: str): - + async def chat(self, token: str, user_id: int, message: str, files: [], conversation_id: str, inputs: dict): target_url = f"{self.base_url}/v1/chat-messages" data = { - "inputs": {}, + "inputs": inputs, "query": message, "response_mode": "streaming", "conversation_id": conversation_id, -- Gitblit v1.8.0