diff options
author | Hansi P. <hansipie@users.noreply.github.com> | 2024-10-15 10:07:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-15 10:07:04 +0200 |
commit | 30d207b1da3e809014529e2efe23cf0205df5529 (patch) | |
tree | a8f37b434cb2bd648a43fea08629220cfdf26166 /g4f/Provider/Blackbox.py | |
parent | get ollama address from env (diff) | |
parent | Merge pull request #2262 from kqlio67/main (diff) | |
download | gpt4free-30d207b1da3e809014529e2efe23cf0205df5529.tar gpt4free-30d207b1da3e809014529e2efe23cf0205df5529.tar.gz gpt4free-30d207b1da3e809014529e2efe23cf0205df5529.tar.bz2 gpt4free-30d207b1da3e809014529e2efe23cf0205df5529.tar.lz gpt4free-30d207b1da3e809014529e2efe23cf0205df5529.tar.xz gpt4free-30d207b1da3e809014529e2efe23cf0205df5529.tar.zst gpt4free-30d207b1da3e809014529e2efe23cf0205df5529.zip |
Diffstat (limited to 'g4f/Provider/Blackbox.py')
-rw-r--r-- | g4f/Provider/Blackbox.py | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/g4f/Provider/Blackbox.py b/g4f/Provider/Blackbox.py index 3e183076..b074d28f 100644 --- a/g4f/Provider/Blackbox.py +++ b/g4f/Provider/Blackbox.py @@ -25,18 +25,10 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin): 'llama-3.1-70b', 'llama-3.1-405b', 'ImageGenerationLV45LJp', - 'GPT-4o', - 'Gemini-PRO', - 'Claude-Sonnet-3.5', + 'gpt-4o', + 'gemini-pro', + 'claude-sonnet-3.5', ] - - model_aliases = { - "gemini-flash": "gemini-1.5-flash", - "flux": "ImageGenerationLV45LJp", - "gpt-4o": "GPT-4o", - "gemini-pro": "Gemini-PRO", - "claude-3.5-sonnet": "Claude-Sonnet-3.5", - } agentMode = { 'ImageGenerationLV45LJp': {'mode': True, 'id': "ImageGenerationLV45LJp", 'name': "Image Generation"}, @@ -51,9 +43,14 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin): } userSelectedModel = { - "GPT-4o": "GPT-4o", - "Gemini-PRO": "Gemini-PRO", - 'Claude-Sonnet-3.5': "Claude-Sonnet-3.5", + "gpt-4o": "gpt-4o", + "gemini-pro": "gemini-pro", + 'claude-sonnet-3.5': "claude-sonnet-3.5", + } + + model_aliases = { + "gemini-flash": "gemini-1.5-flash", + "flux": "ImageGenerationLV45LJp", } @classmethod @@ -119,8 +116,9 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin): "agentMode": {}, "trendingAgentMode": {}, "userSelectedModel": None, + "userSystemPrompt": None, "isMicMode": False, - "maxTokens": 99999999, + "maxTokens": 1024, "playgroundTopP": 0.9, "playgroundTemperature": 0.5, "isChromeExt": False, |