From 933dce93bb6a77832565fc521a5fbf0b72d32f8d Mon Sep 17 00:00:00 2001 From: rkihacker Date: Fri, 1 Nov 2024 19:32:11 +0500 Subject: remove model prefix for claude --- g4f/Provider/Blackbox.py | 1 - 1 file changed, 1 deletion(-) (limited to 'g4f') diff --git a/g4f/Provider/Blackbox.py b/g4f/Provider/Blackbox.py index 4052893a..0013800e 100644 --- a/g4f/Provider/Blackbox.py +++ b/g4f/Provider/Blackbox.py @@ -88,7 +88,6 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin): model_prefixes = { 'gpt-4o': '@GPT-4o', 'gemini-pro': '@Gemini-PRO', - 'claude-sonnet-3.5': '@Claude-Sonnet-3.5', 'PythonAgent': '@Python Agent', 'JavaAgent': '@Java Agent', 'JavaScriptAgent': '@JavaScript Agent', -- cgit v1.2.3 From e1d209ea802af3054dbf2b0bd10907c76f7f409a Mon Sep 17 00:00:00 2001 From: rkihacker Date: Sat, 2 Nov 2024 21:17:15 +0500 Subject: add new agent models --- g4f/Provider/Blackbox.py | 98 +++++++++++++++++++++++++++++++++++++----------- 1 file changed, 76 insertions(+), 22 deletions(-) (limited to 'g4f') diff --git a/g4f/Provider/Blackbox.py b/g4f/Provider/Blackbox.py index e2595b02..47b3c05c 100644 --- a/g4f/Provider/Blackbox.py +++ b/g4f/Provider/Blackbox.py @@ -29,28 +29,46 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin): image_models = ['ImageGeneration'] models = [ default_model, - 'blackboxai-pro', - *image_models, - "llama-3.1-8b", - 'llama-3.1-70b', - 'llama-3.1-405b', - 'gpt-4o', - 'gemini-pro', - 'gemini-1.5-flash', - 'claude-sonnet-3.5', - 'PythonAgent', - 'JavaAgent', - 'JavaScriptAgent', - 'HTMLAgent', - 'GoogleCloudAgent', - 'AndroidDeveloper', - 'SwiftDeveloper', - 'Next.jsAgent', - 'MongoDBAgent', - 'PyTorchAgent', - 'ReactAgent', - 'XcodeAgent', - 'AngularJSAgent', + 'blackboxai-pro', + *image_models, + "llama-3.1-8b", + 'llama-3.1-70b', + 'llama-3.1-405b', + 'gpt-4o', + 'gemini-pro', + 'gemini-1.5-flash', + 'claude-sonnet-3.5', + 'PythonAgent', + 'JavaAgent', + 'JavaScriptAgent', + 'HTMLAgent', + 'GoogleCloudAgent', + 'AndroidDeveloper', + 'SwiftDeveloper', + 'Next.jsAgent', + 'MongoDBAgent', + 'PyTorchAgent', + 'ReactAgent', + 'XcodeAgent', + 'AngularJSAgent', + 'HerokuAgent', + 'GodotAgent', + 'GoAgent', + 'GitlabAgent', + 'GitAgent', + 'RepoMap', + 'FlaskAgent', + 'FirebaseAgent', + 'FastAPIAgent', + 'ErlangAgent', + 'ElectronAgent', + 'DockerAgent', + 'DigitalOceanAgent', + 'BitbucketAgent', + 'AzureAgent', + 'FlutterAgent', + 'YoutubeAgent', + 'builderAgent', ] agentMode = { @@ -58,6 +76,7 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin): } trendingAgentMode = { + "blackboxai": {}, "blackboxai": {}, "gemini-1.5-flash": {'mode': True, 'id': 'Gemini'}, "llama-3.1-8b": {'mode': True, 'id': "llama-3.1-8b"}, @@ -77,6 +96,24 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin): 'ReactAgent': {'mode': True, 'id': "React Agent"}, 'XcodeAgent': {'mode': True, 'id': "Xcode Agent"}, 'AngularJSAgent': {'mode': True, 'id': "AngularJS Agent"}, + 'HerokuAgent': {'mode': True, 'id': "Heroku Agent"}, + 'GodotAgent': {'mode': True, 'id': "Godot Agent"}, + 'GoAgent': {'mode': True, 'id': "Go Agent"}, + 'GitlabAgent': {'mode': True, 'id': "Gitlab Agent"}, + 'GitAgent': {'mode': True, 'id': "Git Agent"}, + 'RepoMap': {'mode': True, 'id': "RepoMap"}, + 'FlaskAgent': {'mode': True, 'id': "FlaskAgentTrendID"}, + 'FirebaseAgent': {'mode': True, 'id': "FirebaseAgentTrendID"}, + 'FastAPIAgent': {'mode': True, 'id': "FastAPIAgentTrendID"}, + 'ErlangAgent': {'mode': True, 'id': "ErlangAgentTrendID"}, + 'ElectronAgent': {'mode': True, 'id': "ElectronAgentTrendID"}, + 'DockerAgent': {'mode': True, 'id': "DockerAgentTrendID"}, + 'DigitalOceanAgent': {'mode': True, 'id': "DigitalOceanAgentTrendID"}, + 'BitbucketAgent': {'mode': True, 'id': "BitbucketAgentTrendID"}, + 'AzureAgent': {'mode': True, 'id': "AzureAgentTrendID"}, + 'FlutterAgent': {'mode': True, 'id': "FlutterAgentTrendID"}, + 'YoutubeAgent': {'mode': True, 'id': "YoutubeAgentTrendID"}, + 'builderAgent': {'mode': True, 'id': "builderAgentTrendID"}, } userSelectedModel = { @@ -101,8 +138,25 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin): 'ReactAgent': '@React Agent', 'XcodeAgent': '@Xcode Agent', 'AngularJSAgent': '@AngularJS Agent', + 'HerokuAgent': '@Heroku Agent', + 'GodotAgent': '@Godot Agent', + 'GoAgent': '@Go Agent', + 'GitlabAgent': '@Gitlab Agent', + 'GitAgent': '@Git Agent', 'blackboxai-pro': '@BLACKBOXAI-PRO', 'ImageGeneration': '@Image Generation', + 'FlaskAgent': '@Flask Agent', + 'FirebaseAgent': '@Firebase Agent', + 'FastAPIAgent': '@FastAPI Agent', + 'ErlangAgent': '@Erlang Agent', + 'ElectronAgent': '@Electron Agent', + 'DockerAgent': '@Docker Agent', + 'DigitalOceanAgent': '@DigitalOcean Agent', + 'BitbucketAgent': '@Bitbucket Agent', + 'AzureAgent': '@Azure Agent', + 'FlutterAgent': '@Flutter Agent', + 'YoutubeAgent': '@Youtube Agent', + 'builderAgent': '@builder Agent', } model_referers = { -- cgit v1.2.3 From cf47a99d6eb2cf4b5eb58387d3eb49264d98ff19 Mon Sep 17 00:00:00 2001 From: rkihacker Date: Sat, 2 Nov 2024 21:23:38 +0500 Subject: add new agent models --- g4f/Provider/Blackbox.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'g4f') diff --git a/g4f/Provider/Blackbox.py b/g4f/Provider/Blackbox.py index 47b3c05c..77cfdcc6 100644 --- a/g4f/Provider/Blackbox.py +++ b/g4f/Provider/Blackbox.py @@ -102,18 +102,18 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin): 'GitlabAgent': {'mode': True, 'id': "Gitlab Agent"}, 'GitAgent': {'mode': True, 'id': "Git Agent"}, 'RepoMap': {'mode': True, 'id': "RepoMap"}, - 'FlaskAgent': {'mode': True, 'id': "FlaskAgentTrendID"}, - 'FirebaseAgent': {'mode': True, 'id': "FirebaseAgentTrendID"}, - 'FastAPIAgent': {'mode': True, 'id': "FastAPIAgentTrendID"}, - 'ErlangAgent': {'mode': True, 'id': "ErlangAgentTrendID"}, - 'ElectronAgent': {'mode': True, 'id': "ElectronAgentTrendID"}, - 'DockerAgent': {'mode': True, 'id': "DockerAgentTrendID"}, - 'DigitalOceanAgent': {'mode': True, 'id': "DigitalOceanAgentTrendID"}, - 'BitbucketAgent': {'mode': True, 'id': "BitbucketAgentTrendID"}, - 'AzureAgent': {'mode': True, 'id': "AzureAgentTrendID"}, - 'FlutterAgent': {'mode': True, 'id': "FlutterAgentTrendID"}, - 'YoutubeAgent': {'mode': True, 'id': "YoutubeAgentTrendID"}, - 'builderAgent': {'mode': True, 'id': "builderAgentTrendID"}, + 'FlaskAgent': {'mode': True, 'id': "Flask Agent"}, + 'FirebaseAgent': {'mode': True, 'id': "Firebase Agent"}, + 'FastAPIAgent': {'mode': True, 'id': "FastAPI Agent"}, + 'ErlangAgent': {'mode': True, 'id': "Erlang Agent"}, + 'ElectronAgent': {'mode': True, 'id': "Electron Agent"}, + 'DockerAgent': {'mode': True, 'id': "Docker Agent"}, + 'DigitalOceanAgent': {'mode': True, 'id': "DigitalOcean Agent"}, + 'BitbucketAgent': {'mode': True, 'id': "Bitbucket Agent"}, + 'AzureAgent': {'mode': True, 'id': "Azure Agent"}, + 'FlutterAgent': {'mode': True, 'id': "Flutter Agent"}, + 'YoutubeAgent': {'mode': True, 'id': "Youtube Agent"}, + 'builderAgent': {'mode': True, 'id': "builder Agent"}, } userSelectedModel = { -- cgit v1.2.3