zhaoqingang
2025-03-13 30ff0afd5d76a3a5aa48058210ae411253574ada
app/service/v2/app_driver/chat_base.py
@@ -32,9 +32,17 @@
            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)
            return response
    @staticmethod
    async def get_headers(token):
        return {
            'Content-Type': 'application/json',
            'Authorization': f'Bearer {token}'
        }