tmp
zhaoqingang
2025-02-11 2bed9e0f6fc8fd1971cc6861bc3f731534c021ae
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,