summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/GeminiPro.py
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-03-09 19:05:05 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-03-09 19:05:05 +0100
commit74a33f10dd4bcac9e9f9716ffa27d3876fc976a0 (patch)
tree80ba1d0a2d2cdbe44b6ad83c378057772d92725f /g4f/Provider/GeminiPro.py
parentAdd system message input to gui (diff)
downloadgpt4free-74a33f10dd4bcac9e9f9716ffa27d3876fc976a0.tar
gpt4free-74a33f10dd4bcac9e9f9716ffa27d3876fc976a0.tar.gz
gpt4free-74a33f10dd4bcac9e9f9716ffa27d3876fc976a0.tar.bz2
gpt4free-74a33f10dd4bcac9e9f9716ffa27d3876fc976a0.tar.lz
gpt4free-74a33f10dd4bcac9e9f9716ffa27d3876fc976a0.tar.xz
gpt4free-74a33f10dd4bcac9e9f9716ffa27d3876fc976a0.tar.zst
gpt4free-74a33f10dd4bcac9e9f9716ffa27d3876fc976a0.zip
Diffstat (limited to 'g4f/Provider/GeminiPro.py')
-rw-r--r--g4f/Provider/GeminiPro.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/Provider/GeminiPro.py b/g4f/Provider/GeminiPro.py
index a22304d5..4e31915a 100644
--- a/g4f/Provider/GeminiPro.py
+++ b/g4f/Provider/GeminiPro.py
@@ -32,7 +32,7 @@ class GeminiPro(AsyncGeneratorProvider, ProviderModelMixin):
connector: BaseConnector = None,
**kwargs
) -> AsyncResult:
- model = "gemini-pro-vision" if model is None and image is not None else model
+ model = "gemini-pro-vision" if not model and image is not None else model
model = cls.get_model(model)
if not api_key: