zhaoqingang
2025-02-18 124bfc93ed2d3702cf9d9af9ff9b5985ec2b7b45
app/service/v2/app_driver/chat_base.py
@@ -32,6 +32,13 @@
            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',