zhangxiao
2024-10-18 2aca3fa30fac2aa5790f6b598dad7e2e59173012
app/service/ragflow.py
@@ -56,8 +56,10 @@
            "conversation_id": chat_id,
            "messages": chat_history
        }
        print(data)
        target_url = f"{self.base_url}/v1/conversation/completion"
        async with httpx.AsyncClient() as client:
        async with httpx.AsyncClient(timeout=300.0) as client:
            headers = {
                'Content-Type': 'application/json',
                'Authorization': token