zhaoqingang
2025-04-10 abb91124a4372b0efe5ab1b7aa25859c635d30eb
app/service/v2/app_driver/chat_base.py
@@ -32,6 +32,12 @@
            return response
    @staticmethod
    async def http_put(url, data, headers, timeout=300):
        async with httpx.AsyncClient(timeout=timeout) as client:
            response = await client.put(url, json=data, headers=headers)
            return response
    @staticmethod
    async def http_upload_file(url, data, files, headers, timeout=300):
        async with httpx.AsyncClient(timeout=timeout) as client:
            response = await client.post(url, headers=headers, files=files, data=data)