vectorvein 0.1.22__py3-none-any.whl → 0.1.23__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -83,10 +83,10 @@ class GeminiChatClient(BaseChatClient):
83
83
  else:
84
84
  tools_params = {}
85
85
 
86
- if response_format:
87
- response_format_params = {"generationConfig": {"response_mime_type": "application/json"}}
88
- else:
89
- response_format_params = {}
86
+ response_format_params = {}
87
+ if response_format is not None:
88
+ if response_format.get("type") == "json_object":
89
+ response_format_params = {"response_mime_type": "application/json"}
90
90
 
91
91
  if self.random_endpoint:
92
92
  self.random_endpoint = True
@@ -104,9 +104,9 @@ class GeminiChatClient(BaseChatClient):
104
104
  "generationConfig": {
105
105
  "temperature": self.temperature,
106
106
  "maxOutputTokens": max_tokens,
107
+ **response_format_params,
107
108
  },
108
109
  **tools_params,
109
- **response_format_params,
110
110
  **kwargs,
111
111
  }
112
112
  if system_prompt:
@@ -266,10 +266,10 @@ class AsyncGeminiChatClient(BaseAsyncChatClient):
266
266
  else:
267
267
  tools_params = {}
268
268
 
269
- if response_format:
270
- response_format_params = {"generationConfig": {"response_mime_type": "application/json"}}
271
- else:
272
- response_format_params = {}
269
+ response_format_params = {}
270
+ if response_format is not None:
271
+ if response_format.get("type") == "json_object":
272
+ response_format_params = {"response_mime_type": "application/json"}
273
273
 
274
274
  if self.random_endpoint:
275
275
  self.random_endpoint = True
@@ -287,9 +287,9 @@ class AsyncGeminiChatClient(BaseAsyncChatClient):
287
287
  "generationConfig": {
288
288
  "temperature": self.temperature,
289
289
  "maxOutputTokens": max_tokens,
290
+ **response_format_params,
290
291
  },
291
292
  **tools_params,
292
- **response_format_params,
293
293
  **kwargs,
294
294
  }
295
295
  if system_prompt:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vectorvein
3
- Version: 0.1.22
3
+ Version: 0.1.23
4
4
  Summary: Default template for PDM package
5
5
  Author-Email: Anderson <andersonby@163.com>
6
6
  License: MIT
@@ -1,13 +1,13 @@
1
- vectorvein-0.1.22.dist-info/METADATA,sha256=v0yHxvMOOfloUCUb-CtgrqCXeTnd6zf1V6tVOlzENWA,502
2
- vectorvein-0.1.22.dist-info/WHEEL,sha256=Yaoh9rlmnhBUmykFXwmFW_cmVAW3ZIWH8QkQVngJtyw,90
3
- vectorvein-0.1.22.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
1
+ vectorvein-0.1.23.dist-info/METADATA,sha256=WlWH7IJNvTkNwtDxV2IAtUEgfGvjhhfkLlGK7vZluPM,502
2
+ vectorvein-0.1.23.dist-info/WHEEL,sha256=Yaoh9rlmnhBUmykFXwmFW_cmVAW3ZIWH8QkQVngJtyw,90
3
+ vectorvein-0.1.23.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
4
  vectorvein/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  vectorvein/chat_clients/__init__.py,sha256=lOGrIEBGN-EoxJ-dF5uMsO6viNCIFIeNL8whDwE6x3g,4657
6
6
  vectorvein/chat_clients/anthropic_client.py,sha256=VJQi7cKLbbLkJtmEFN9M41JUaGjwEuJaXIuQLK-3rdw,20332
7
7
  vectorvein/chat_clients/baichuan_client.py,sha256=CVMvpgjdrZGv0BWnTOBD-f2ufZ3wq3496wqukumsAr4,526
8
8
  vectorvein/chat_clients/base_client.py,sha256=nGml8rGyKc71Wl2nMbqt_5L9gbX-MCRU2jvHJvxF4AY,5108
9
9
  vectorvein/chat_clients/deepseek_client.py,sha256=3qWu01NlJAP2N-Ff62d5-CZXZitlizE1fzb20LNetig,526
10
- vectorvein/chat_clients/gemini_client.py,sha256=sb7YvnkTy0n-GCK49PDUkQ8xE6jqiCV61GjOYKW-YyI,15213
10
+ vectorvein/chat_clients/gemini_client.py,sha256=N08OPbCDK-_jN_CzEG8rIKlrMMNqW6cq9ucjREqF6dY,15295
11
11
  vectorvein/chat_clients/groq_client.py,sha256=Uow4pgdmFi93ZQSoOol2-0PhhqkW-S0XuSldvppz5U4,498
12
12
  vectorvein/chat_clients/local_client.py,sha256=55nOsxzqUf79q3Y14MKROA71zxhsT7p7FsDZ89rts2M,422
13
13
  vectorvein/chat_clients/minimax_client.py,sha256=xykptVg0qzOrJKuswHLG3M7r8H37jEMOb0gAnYAUdKQ,13947
@@ -25,4 +25,4 @@ vectorvein/types/enums.py,sha256=PNK_pTIyjJFy-yAG2PHaMIO1ey3W6fReMCkH8M8VRW4,159
25
25
  vectorvein/types/llm_parameters.py,sha256=mmJjJZz4bPRi0nHzYNUNdWsQLHa9lbf3-MNVnU78vaY,3608
26
26
  vectorvein/utilities/media_processing.py,sha256=BujciRmw1GMmc3ELRvafL8STcy6r5b2rVnh27-uA7so,2256
27
27
  vectorvein/utilities/retry.py,sha256=9ePuJdeUUGx-qMWfaFxmlOvG_lQPwCQ4UB1z3Edlo34,993
28
- vectorvein-0.1.22.dist-info/RECORD,,
28
+ vectorvein-0.1.23.dist-info/RECORD,,