From 42a02c3d2dfaa0a489765e5161efc0a68e17556f Mon Sep 17 00:00:00 2001 From: abc <98614666+xtekky@users.noreply.github.com> Date: Sat, 23 Sep 2023 00:44:09 +0100 Subject: =?UTF-8?q?~=20|=C2=A0new=20providers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Somwhat fix Aivvm provider, which looks to have a working gpt-4 kinda unstable --- g4f/models.py | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'g4f/models.py') diff --git a/g4f/models.py b/g4f/models.py index 9889f0d5..12de4db5 100644 --- a/g4f/models.py +++ b/g4f/models.py @@ -52,7 +52,11 @@ gpt_35_turbo = Model( gpt_4 = Model( name = 'gpt-4', - base_provider = 'openai') + base_provider = 'openai', + best_provider = RetryProvider([ + Aivvm + ]) +) # Bard palm = Model( @@ -133,52 +137,52 @@ flan_t5_xxl = Model( best_provider = Vercel) code_davinci_002 = Model( - name = 'openai:code-davinci-002', + name = 'code-davinci-002', base_provider = 'openai', best_provider = Vercel) gpt_35_turbo_16k = Model( - name = 'openai:gpt-3.5-turbo-16k', + name = 'gpt-3.5-turbo-16k', base_provider = 'openai', best_provider = Vercel) gpt_35_turbo_16k_0613 = Model( - name = 'openai:gpt-3.5-turbo-16k-0613', + name = 'gpt-3.5-turbo-16k-0613', base_provider = 'openai') gpt_35_turbo_0613 = Model( - name = 'openai:gpt-3.5-turbo-0613', + name = 'gpt-3.5-turbo-0613', base_provider = 'openai', best_provider = [ Aivvm, ChatgptLogin]) gpt_4_0613 = Model( - name = 'openai:gpt-4-0613', + name = 'gpt-4-0613', base_provider = 'openai', best_provider = Vercel) text_ada_001 = Model( - name = 'openai:text-ada-001', + name = 'text-ada-001', base_provider = 'openai', best_provider = Vercel) text_babbage_001 = Model( - name = 'openai:text-babbage-001', + name = 'text-babbage-001', base_provider = 'openai', best_provider = Vercel) text_curie_001 = Model( - name = 'openai:text-curie-001', + name = 'text-curie-001', base_provider = 'openai', best_provider = Vercel) text_davinci_002 = Model( - name = 'openai:text-davinci-002', + name = 'text-davinci-002', base_provider = 'openai', best_provider = Vercel) text_davinci_003 = Model( - name = 'openai:text-davinci-003', + name = 'text-davinci-003', base_provider = 'openai', best_provider = Vercel) -- cgit v1.2.3