LLM-Bridge 1.13.0__py3-none-any.whl → 1.13.1__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.
@@ -61,7 +61,6 @@ async def create_gemini_client(
61
61
  config = types.GenerateContentConfig(
62
62
  system_instruction=system_instruction,
63
63
  temperature=temperature,
64
- media_resolution=MediaResolution.MEDIA_RESOLUTION_HIGH,
65
64
  safety_settings=[
66
65
  types.SafetySetting(
67
66
  category=types.HarmCategory.HARM_CATEGORY_HATE_SPEECH,
@@ -89,6 +88,9 @@ async def create_gemini_client(
89
88
  response_modalities=response_modalities,
90
89
  )
91
90
 
91
+ if vertexai:
92
+ config.media_resolution=MediaResolution.MEDIA_RESOLUTION_HIGH
93
+
92
94
  if structured_output_schema:
93
95
  config.response_mime_type = "application/json"
94
96
  config.response_json_schema = structured_output_schema
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: LLM-Bridge
3
- Version: 1.13.0
3
+ Version: 1.13.1
4
4
  Summary: A Bridge for LLMs
5
5
  Author-email: windsnow1025 <windsnow1025@gmail.com>
6
6
  License-Expression: MIT
@@ -32,7 +32,7 @@ llm_bridge/logic/chat_generate/chat_message_converter.py,sha256=40VTBOPXg_ocrEZM
32
32
  llm_bridge/logic/chat_generate/media_processor.py,sha256=ZR8G24EHwZZr2T9iFDRmScDGyJ_kvThApABzSzK0CL0,702
33
33
  llm_bridge/logic/chat_generate/model_client_factory/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
34
  llm_bridge/logic/chat_generate/model_client_factory/claude_client_factory.py,sha256=EMXEpNTmhOv_D8pQIPboW3taRX5DnLa1QIGJn0VjO4M,3597
35
- llm_bridge/logic/chat_generate/model_client_factory/gemini_client_factory.py,sha256=MllYs6dPVohY5Bm5dOlS7lR_oOB6_o9saR5fKE1_x20,3668
35
+ llm_bridge/logic/chat_generate/model_client_factory/gemini_client_factory.py,sha256=6CuacST1bLUGhY-rGH0bm5tu3r9iQQhIweN32TgqLCc,3692
36
36
  llm_bridge/logic/chat_generate/model_client_factory/openai_client_factory.py,sha256=xRnqYal5lBS76tCJKJHVvI0UsLCM49hTlqN6xYmzPco,5028
37
37
  llm_bridge/logic/chat_generate/model_client_factory/schema_converter.py,sha256=kQ3RGyg_9vbe7oYzbl11Dzu-tHPY1z2-SBBSgHHwPfM,143
38
38
  llm_bridge/logic/chat_generate/model_message_converter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -56,8 +56,8 @@ llm_bridge/type/model_message/claude_message.py,sha256=gYJUTbLUeifQMva3Axarc-VFe
56
56
  llm_bridge/type/model_message/gemini_message.py,sha256=mh8pf929g7_NkBzSOwnLXyrwSzTT4yt2FmyX7NZn0sM,4302
57
57
  llm_bridge/type/model_message/openai_message.py,sha256=xFaLY-cZoSwNd7E9BSWQjBNcRfCVH11X9s2yxXlctR0,453
58
58
  llm_bridge/type/model_message/openai_responses_message.py,sha256=be1q2euA0ybjj4NO6NxOGIRB9eJuXSb4ssUm_bM4Ocs,1529
59
- llm_bridge-1.13.0.dist-info/licenses/LICENSE,sha256=m6uon-6P_CaiqcBfApMfjG9YRtDxcr40Z52JcqUCEAE,1069
60
- llm_bridge-1.13.0.dist-info/METADATA,sha256=WEfH36m-VHEcwzIb-h2ixMhi8nxlrccp-84jhhbDKIs,3500
61
- llm_bridge-1.13.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
62
- llm_bridge-1.13.0.dist-info/top_level.txt,sha256=PtxyrgNX1lSa1Ab_qswg0sekSXejG5zrS6b_v3Po05g,11
63
- llm_bridge-1.13.0.dist-info/RECORD,,
59
+ llm_bridge-1.13.1.dist-info/licenses/LICENSE,sha256=m6uon-6P_CaiqcBfApMfjG9YRtDxcr40Z52JcqUCEAE,1069
60
+ llm_bridge-1.13.1.dist-info/METADATA,sha256=-UnhTogwrioLevGqr6kyMCyXy4fq1LpkPstEQzUjM4k,3500
61
+ llm_bridge-1.13.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
62
+ llm_bridge-1.13.1.dist-info/top_level.txt,sha256=PtxyrgNX1lSa1Ab_qswg0sekSXejG5zrS6b_v3Po05g,11
63
+ llm_bridge-1.13.1.dist-info/RECORD,,