summaryrefslogtreecommitdiffstats
path: root/g4f/Provider
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
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')
-rw-r--r--g4f/Provider/GeminiPro.py2
-rw-r--r--g4f/Provider/bing/conversation.py2
2 files changed, 2 insertions, 2 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:
diff --git a/g4f/Provider/bing/conversation.py b/g4f/Provider/bing/conversation.py
index 919d9c1d..4af9e5fe 100644
--- a/g4f/Provider/bing/conversation.py
+++ b/g4f/Provider/bing/conversation.py
@@ -46,7 +46,7 @@ async def create_conversation(session: ClientSession, proxy: str = None) -> Conv
}
for k, v in headers.items():
session.headers[k] = v
- url = 'https://www.bing.com/turing/conversation/create?bundleVersion=1.1579.2'
+ url = 'https://www.bing.com/turing/conversation/create?bundleVersion=1.1626.1'
async with session.get(url, headers=headers, proxy=proxy) as response:
try:
data = await response.json()