summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/needs_auth/OpenaiChat.py
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-02-09 18:11:35 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-02-09 18:11:35 +0100
commitaf204c31cb047436f4e1c36199e15692eb271f20 (patch)
tree809b00081d39e259b1523457840ddf512d05c1a0 /g4f/Provider/needs_auth/OpenaiChat.py
parentUpdate OpenaiChat.py (diff)
downloadgpt4free-af204c31cb047436f4e1c36199e15692eb271f20.tar
gpt4free-af204c31cb047436f4e1c36199e15692eb271f20.tar.gz
gpt4free-af204c31cb047436f4e1c36199e15692eb271f20.tar.bz2
gpt4free-af204c31cb047436f4e1c36199e15692eb271f20.tar.lz
gpt4free-af204c31cb047436f4e1c36199e15692eb271f20.tar.xz
gpt4free-af204c31cb047436f4e1c36199e15692eb271f20.tar.zst
gpt4free-af204c31cb047436f4e1c36199e15692eb271f20.zip
Diffstat (limited to 'g4f/Provider/needs_auth/OpenaiChat.py')
-rw-r--r--g4f/Provider/needs_auth/OpenaiChat.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/g4f/Provider/needs_auth/OpenaiChat.py b/g4f/Provider/needs_auth/OpenaiChat.py
index 7c707b5e..b1b267fd 100644
--- a/g4f/Provider/needs_auth/OpenaiChat.py
+++ b/g4f/Provider/needs_auth/OpenaiChat.py
@@ -38,6 +38,7 @@ class OpenaiChat(AsyncGeneratorProvider, ProviderModelMixin):
supports_gpt_4 = True
default_model = None
models = ["gpt-3.5-turbo", "gpt-4", "gpt-4-gizmo"]
+ model_aliases = {"text-davinci-002-render-sha": "gpt-3.5-turbo"}
_cookies: dict = {}
@classmethod
@@ -403,7 +404,7 @@ class OpenaiChat(AsyncGeneratorProvider, ProviderModelMixin):
if "message_type" not in line["message"]["metadata"]:
continue
try:
- image_response = await cls.get_generated_image(session, headers, line)
+ image_response = await cls.get_generated_image(session, auth_headers, line)
if image_response:
yield image_response
except Exception as e: