From 3da7a14a72b574aae0b72d21f22490c3be4b47c6 Mon Sep 17 00:00:00 2001 From: kqlio67 Date: Tue, 5 Nov 2024 16:02:39 +0200 Subject: The provider is disconnected due to a Cloudflare issue. (g4f/Provider/ChatgptFree.py) --- g4f/Provider/ChatgptFree.py | 3 ++- g4f/models.py | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'g4f') diff --git a/g4f/Provider/ChatgptFree.py b/g4f/Provider/ChatgptFree.py index d2837594..d1222efb 100644 --- a/g4f/Provider/ChatgptFree.py +++ b/g4f/Provider/ChatgptFree.py @@ -10,10 +10,11 @@ from .helper import format_prompt class ChatgptFree(AsyncGeneratorProvider, ProviderModelMixin): url = "https://chatgptfree.ai" - working = True + working = False _post_id = None _nonce = None default_model = 'gpt-4o-mini-2024-07-18' + models = [default_model] model_aliases = { "gpt-4o-mini": "gpt-4o-mini-2024-07-18", } diff --git a/g4f/models.py b/g4f/models.py index 38cb37fa..612a4d68 100644 --- a/g4f/models.py +++ b/g4f/models.py @@ -15,7 +15,6 @@ from .Provider import ( ChatGpt, Chatgpt4Online, ChatGptEs, - ChatgptFree, ChatifyAI, Cloudflare, DarkAI, @@ -140,7 +139,7 @@ gpt_4o = Model( gpt_4o_mini = Model( name = 'gpt-4o-mini', base_provider = 'OpenAI', - best_provider = IterListProvider([DDG, ChatGptEs, FreeNetfly, Pizzagpt, MagickPen, RubiksAI, Liaobots, ChatGpt, Airforce, ChatgptFree, Koala, OpenaiChat]) + best_provider = IterListProvider([DDG, ChatGptEs, FreeNetfly, Pizzagpt, MagickPen, RubiksAI, Liaobots, ChatGpt, Airforce, Koala, OpenaiChat]) ) gpt_4_turbo = Model( -- cgit v1.2.3