From ea346971dfc418cb144d633dc75ae704c92f5d92 Mon Sep 17 00:00:00 2001 From: kqlio67 <166700875+kqlio67@users.noreply.github.com> Date: Wed, 20 Nov 2024 08:51:29 +0000 Subject: New RobocodersAPI provider with providers enhancement and client updates (#2388) * refactor(g4f/Provider/Airforce.py): Enhance Airforce provider with dynamic model fetching * refactor(g4f/Provider/Blackbox.py): Enhance Blackbox AI provider configuration and streamline code * feat(g4f/Provider/RobocodersAPI.py): Add RobocodersAPI new async chat provider * refactor(g4f/client/__init__.py): Improve provider handling in async_generate method * refactor(g4f/models.py): Update provider configurations for multiple models * refactor(g4f/Provider/Blackbox.py): Streamline model configuration and improve response handling --------- Co-authored-by: kqlio67 --- g4f/models.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'g4f/models.py') diff --git a/g4f/models.py b/g4f/models.py index 8825242f..655aca9c 100644 --- a/g4f/models.py +++ b/g4f/models.py @@ -211,7 +211,7 @@ phi_3_5_mini = Model( gemini_pro = Model( name = 'gemini-pro', base_provider = 'Google DeepMind', - best_provider = IterListProvider([GeminiPro, Blackbox, AIChatFree, Liaobots]) + best_provider = IterListProvider([Blackbox, AIChatFree, GeminiPro, Liaobots]) ) gemini_flash = Model( @@ -347,7 +347,7 @@ deepseek_coder = Model( wizardlm_2_8x22b = Model( name = 'wizardlm-2-8x22b', base_provider = 'WizardLM', - best_provider = IterListProvider([DeepInfraChat]) + best_provider = DeepInfraChat ) ### Yorickvp ### @@ -389,7 +389,7 @@ grok_beta = Model( sonar_online = Model( name = 'sonar-online', base_provider = 'Perplexity AI', - best_provider = IterListProvider([PerplexityLabs]) + best_provider = PerplexityLabs ) sonar_chat = Model( @@ -450,7 +450,7 @@ neural_7b = Model( sdxl = Model( name = 'sdxl', base_provider = 'Stability AI', - best_provider = IterListProvider([ReplicateHome]) + best_provider = ReplicateHome ) @@ -671,4 +671,4 @@ class ModelUtils: 'any-dark': any_dark, } -_all_models = list(ModelUtils.convert.keys()) \ No newline at end of file +_all_models = list(ModelUtils.convert.keys()) -- cgit v1.2.3