url = "url_to_api"
headers = {"authorization": f"Bearer {Config.API}"}
data = {
"providers": "openai",
"language": "ru-RU",
}
files = {'file': file_bytes}
async with aiohttp.ClientSession() as session:
async with session.post(url, data=data, headers=headers, files=files) as response:
result = await response.json()
TypeError: ClientSession._request() got an unexpected keyword argument 'files'