zhangqian
2024-10-17 80978b3aec0e7f7a89d3ad671a9c0869c187be7c
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=10.0) as client:
            headers = {
                'Content-Type': 'application/json',
                'Authorization': token