summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-04-14 14:19:33 +0200
committerGitHub <noreply@github.com>2024-04-14 14:19:33 +0200
commitfc33573b1bb57d8bf372faeb4c0ccc0dac789869 (patch)
tree0b8f4a0fbd554fb192cdac4f2276b7d7b3ef84e5 /g4f
parentMerge branch 'main' of https://github.com/xtekky/gpt4free (diff)
parentAdd model alias for gpt-4-turbo-preview in OpenaiChat Provider (diff)
downloadgpt4free-fc33573b1bb57d8bf372faeb4c0ccc0dac789869.tar
gpt4free-fc33573b1bb57d8bf372faeb4c0ccc0dac789869.tar.gz
gpt4free-fc33573b1bb57d8bf372faeb4c0ccc0dac789869.tar.bz2
gpt4free-fc33573b1bb57d8bf372faeb4c0ccc0dac789869.tar.lz
gpt4free-fc33573b1bb57d8bf372faeb4c0ccc0dac789869.tar.xz
gpt4free-fc33573b1bb57d8bf372faeb4c0ccc0dac789869.tar.zst
gpt4free-fc33573b1bb57d8bf372faeb4c0ccc0dac789869.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/needs_auth/OpenaiChat.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/Provider/needs_auth/OpenaiChat.py b/g4f/Provider/needs_auth/OpenaiChat.py
index ff3446ac..b3955c35 100644
--- a/g4f/Provider/needs_auth/OpenaiChat.py
+++ b/g4f/Provider/needs_auth/OpenaiChat.py
@@ -44,7 +44,7 @@ class OpenaiChat(AsyncGeneratorProvider, ProviderModelMixin):
supports_system_message = 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", "": "gpt-3.5-turbo"}
+ model_aliases = {"text-davinci-002-render-sha": "gpt-3.5-turbo", "": "gpt-3.5-turbo", "gpt-4-turbo-preview": "gpt-4"}
_api_key: str = None
_headers: dict = None
_cookies: Cookies = None
@@ -784,4 +784,4 @@ class Response():
async def get_messages(self) -> list:
messages = self._messages
messages.append({"role": "assistant", "content": await self.message()})
- return messages \ No newline at end of file
+ return messages