summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/ChatGpt.py
diff options
context:
space:
mode:
authorTekky <98614666+xtekky@users.noreply.github.com>2024-09-29 22:41:08 +0200
committerGitHub <noreply@github.com>2024-09-29 22:41:08 +0200
commit0deb0f60dd4985017d3fcb946e108be8d1f63846 (patch)
treee926d6f5551b4eb069e35b41479275056999e6c9 /g4f/Provider/ChatGpt.py
parentAdded gpt-4o provider (diff)
parentfeat(g4f/Provider/Nexra.py): enhance model handling and add new providers (diff)
downloadgpt4free-0deb0f60dd4985017d3fcb946e108be8d1f63846.tar
gpt4free-0deb0f60dd4985017d3fcb946e108be8d1f63846.tar.gz
gpt4free-0deb0f60dd4985017d3fcb946e108be8d1f63846.tar.bz2
gpt4free-0deb0f60dd4985017d3fcb946e108be8d1f63846.tar.lz
gpt4free-0deb0f60dd4985017d3fcb946e108be8d1f63846.tar.xz
gpt4free-0deb0f60dd4985017d3fcb946e108be8d1f63846.tar.zst
gpt4free-0deb0f60dd4985017d3fcb946e108be8d1f63846.zip
Diffstat (limited to 'g4f/Provider/ChatGpt.py')
-rw-r--r--g4f/Provider/ChatGpt.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/g4f/Provider/ChatGpt.py b/g4f/Provider/ChatGpt.py
index 878fb424..fc34fc2b 100644
--- a/g4f/Provider/ChatGpt.py
+++ b/g4f/Provider/ChatGpt.py
@@ -76,7 +76,13 @@ class ChatGpt(AbstractProvider, ProviderModelMixin):
supports_message_history = True
supports_system_message = True
supports_stream = True
-
+ models = [
+ 'gpt-4o',
+ 'gpt-4o-mini',
+ 'gpt-4',
+ 'gpt-4-turbo',
+ 'chatgpt-4o-latest',
+ ]
@classmethod
def create_completion(
@@ -197,4 +203,4 @@ class ChatGpt(AbstractProvider, ProviderModelMixin):
yield tokens.replace(replace, '')
- replace = tokens \ No newline at end of file
+ replace = tokens