zhaoqingang
2025-02-06 b9c7727dc6fbb3789f063c0616ef9392311fecb2
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,