summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/needs_auth/GeminiPro.py
diff options
context:
space:
mode:
authorkqlio67 <kqlio67@users.noreply.github.com>2024-11-06 17:39:14 +0100
committerkqlio67 <kqlio67@users.noreply.github.com>2024-11-06 17:39:14 +0100
commit6dd378d2aca256f45ff7b2fd23c59497aad82045 (patch)
treec07a20b0e2e3c1643065cef96910ae8acc84a5eb /g4f/Provider/needs_auth/GeminiPro.py
parentUpdate (g4f/Provider/not_working/) (diff)
downloadgpt4free-6dd378d2aca256f45ff7b2fd23c59497aad82045.tar
gpt4free-6dd378d2aca256f45ff7b2fd23c59497aad82045.tar.gz
gpt4free-6dd378d2aca256f45ff7b2fd23c59497aad82045.tar.bz2
gpt4free-6dd378d2aca256f45ff7b2fd23c59497aad82045.tar.lz
gpt4free-6dd378d2aca256f45ff7b2fd23c59497aad82045.tar.xz
gpt4free-6dd378d2aca256f45ff7b2fd23c59497aad82045.tar.zst
gpt4free-6dd378d2aca256f45ff7b2fd23c59497aad82045.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/needs_auth/GeminiPro.py (renamed from g4f/Provider/GeminiPro.py)12
1 files changed, 6 insertions, 6 deletions
diff --git a/g4f/Provider/GeminiPro.py b/g4f/Provider/needs_auth/GeminiPro.py
index 06bf69ee..5c170ae5 100644
--- a/g4f/Provider/GeminiPro.py
+++ b/g4f/Provider/needs_auth/GeminiPro.py
@@ -4,11 +4,11 @@ import base64
import json
from aiohttp import ClientSession, BaseConnector
-from ..typing import AsyncResult, Messages, ImageType
-from .base_provider import AsyncGeneratorProvider, ProviderModelMixin
-from ..image import to_bytes, is_accepted_format
-from ..errors import MissingAuthError
-from .helper import get_connector
+from ...typing import AsyncResult, Messages, ImageType
+from ..base_provider import AsyncGeneratorProvider, ProviderModelMixin
+from ...image import to_bytes, is_accepted_format
+from ...errors import MissingAuthError
+from ..helper import get_connector
class GeminiPro(AsyncGeneratorProvider, ProviderModelMixin):
label = "Gemini API"
@@ -104,4 +104,4 @@ class GeminiPro(AsyncGeneratorProvider, ProviderModelMixin):
lines.append(chunk)
else:
data = await response.json()
- yield data["candidates"][0]["content"]["parts"][0]["text"] \ No newline at end of file
+ yield data["candidates"][0]["content"]["parts"][0]["text"]