Update Gemini.py

fix issue #1932
This commit is contained in:
HyiKi 2024-05-09 12:10:35 +08:00
parent ee7428e767
commit 1fb9eb94f7

View File

@ -225,7 +225,7 @@ class Gemini(AsyncGeneratorProvider):
headers=UPLOAD_IMAGE_HEADERS, headers=UPLOAD_IMAGE_HEADERS,
connector=connector connector=connector
) as session: ) as session:
async with session.options(UPLOAD_IMAGE_URL) as reponse: async with session.options(UPLOAD_IMAGE_URL) as response:
await raise_for_status(response) await raise_for_status(response)
headers = { headers = {