llm-gemini 0.23__py3-none-any.whl → 0.24__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.
- {llm_gemini-0.23.dist-info → llm_gemini-0.24.dist-info}/METADATA +3 -3
- llm_gemini-0.24.dist-info/RECORD +7 -0
- llm_gemini.py +5 -6
- llm_gemini-0.23.dist-info/RECORD +0 -7
- {llm_gemini-0.23.dist-info → llm_gemini-0.24.dist-info}/WHEEL +0 -0
- {llm_gemini-0.23.dist-info → llm_gemini-0.24.dist-info}/entry_points.txt +0 -0
- {llm_gemini-0.23.dist-info → llm_gemini-0.24.dist-info}/licenses/LICENSE +0 -0
- {llm_gemini-0.23.dist-info → llm_gemini-0.24.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: llm-gemini
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.24
|
4
4
|
Summary: LLM plugin to access Google's Gemini family of models
|
5
5
|
Author: Simon Willison
|
6
6
|
License-Expression: Apache-2.0
|
@@ -77,7 +77,7 @@ to_output = []
|
|
77
77
|
NOTES = {
|
78
78
|
"gemini/gemini-2.5-pro": "Gemini 2.5 Pro",
|
79
79
|
"gemini/gemini-2.5-flash": "Gemini 2.5 Flash",
|
80
|
-
"gemini/gemini-2.5-flash-lite
|
80
|
+
"gemini/gemini-2.5-flash-lite": "Gemini 2.5 Flash Lite",
|
81
81
|
"gemini/gemini-2.5-flash-preview-05-20": "Gemini 2.5 Flash preview (priced differently from 2.5 Flash)",
|
82
82
|
"gemini/gemini-2.0-flash-thinking-exp-01-21": "Experimental \"thinking\" model from January 2025",
|
83
83
|
"gemini/gemini-1.5-flash-8b-latest": "The least expensive model",
|
@@ -93,9 +93,9 @@ for line in lines:
|
|
93
93
|
)
|
94
94
|
cog.out("\n".join(to_output))
|
95
95
|
]]] -->
|
96
|
+
- `gemini/gemini-2.5-flash-lite`: Gemini 2.5 Flash Lite
|
96
97
|
- `gemini/gemini-2.5-pro`: Gemini 2.5 Pro
|
97
98
|
- `gemini/gemini-2.5-flash`: Gemini 2.5 Flash
|
98
|
-
- `gemini/gemini-2.5-flash-lite-preview-06-17`: Gemini 2.5 Lite Preview
|
99
99
|
- `gemini/gemini-2.5-pro-preview-06-05`
|
100
100
|
- `gemini/gemini-2.5-flash-preview-05-20`: Gemini 2.5 Flash preview (priced differently from 2.5 Flash)
|
101
101
|
- `gemini/gemini-2.5-pro-preview-05-06`
|
@@ -0,0 +1,7 @@
|
|
1
|
+
llm_gemini.py,sha256=plGri2fQasL1iWZlEeWsuZZwlGxNyp0WpK_msVqo0AQ,23564
|
2
|
+
llm_gemini-0.24.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
3
|
+
llm_gemini-0.24.dist-info/METADATA,sha256=ehpIeJRRZAnlVb8T8cHVwfx6mpvy9Sb0e4eot6AcOqg,10468
|
4
|
+
llm_gemini-0.24.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
5
|
+
llm_gemini-0.24.dist-info/entry_points.txt,sha256=n544bpgUPIBc5l_cnwsTxPc3gMGJHPtAyqBNp-CkMWk,26
|
6
|
+
llm_gemini-0.24.dist-info/top_level.txt,sha256=WUQmG6_2QKbT_8W4HH93qyKl_0SUteL4Ra6_PhyNGKU,11
|
7
|
+
llm_gemini-0.24.dist-info/RECORD,,
|
llm_gemini.py
CHANGED
@@ -44,7 +44,7 @@ GOOGLE_SEARCH_MODELS = {
|
|
44
44
|
"gemini-2.5-pro-preview-06-05",
|
45
45
|
"gemini-2.5-pro",
|
46
46
|
"gemini-2.5-flash",
|
47
|
-
"gemini-2.5-flash-lite
|
47
|
+
"gemini-2.5-flash-lite",
|
48
48
|
}
|
49
49
|
|
50
50
|
# Older Google models used google_search_retrieval instead of google_search
|
@@ -69,7 +69,7 @@ THINKING_BUDGET_MODELS = {
|
|
69
69
|
"gemini-2.5-pro-preview-06-05",
|
70
70
|
"gemini-2.5-pro",
|
71
71
|
"gemini-2.5-flash",
|
72
|
-
"gemini-2.5-flash-lite
|
72
|
+
"gemini-2.5-flash-lite",
|
73
73
|
}
|
74
74
|
|
75
75
|
NO_VISION_MODELS = {"gemma-3-1b-it", "gemma-3n-e4b-it"}
|
@@ -152,10 +152,10 @@ def register_models(register):
|
|
152
152
|
"gemini-2.5-flash-preview-05-20",
|
153
153
|
# 5th June 2025:
|
154
154
|
"gemini-2.5-pro-preview-06-05",
|
155
|
-
# 17th June 2025:
|
156
|
-
"gemini-2.5-flash-lite-preview-06-17",
|
157
155
|
"gemini-2.5-flash",
|
158
156
|
"gemini-2.5-pro",
|
157
|
+
# 22nd July 2025:
|
158
|
+
"gemini-2.5-flash-lite",
|
159
159
|
):
|
160
160
|
can_google_search = model_id in GOOGLE_SEARCH_MODELS
|
161
161
|
can_thinking_budget = model_id in THINKING_BUDGET_MODELS
|
@@ -339,8 +339,7 @@ class _SharedGemini:
|
|
339
339
|
messages.append({"role": "user", "parts": parts})
|
340
340
|
model_parts = []
|
341
341
|
response_text = response.text_or_raise()
|
342
|
-
|
343
|
-
model_parts.append({"text": response_text})
|
342
|
+
model_parts.append({"text": response_text})
|
344
343
|
tool_calls = response.tool_calls_or_raise()
|
345
344
|
if tool_calls:
|
346
345
|
model_parts.extend(
|
llm_gemini-0.23.dist-info/RECORD
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
llm_gemini.py,sha256=ppAIuYcHxZ5D-tgydVlK3Hk_CkjY2hBGbzcJwCjcdUA,23644
|
2
|
-
llm_gemini-0.23.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
3
|
-
llm_gemini-0.23.dist-info/METADATA,sha256=FHIbD5OVH06DnH_TdK8TqM8JpoWhlvAvRQODl2YbA2g,10500
|
4
|
-
llm_gemini-0.23.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
5
|
-
llm_gemini-0.23.dist-info/entry_points.txt,sha256=n544bpgUPIBc5l_cnwsTxPc3gMGJHPtAyqBNp-CkMWk,26
|
6
|
-
llm_gemini-0.23.dist-info/top_level.txt,sha256=WUQmG6_2QKbT_8W4HH93qyKl_0SUteL4Ra6_PhyNGKU,11
|
7
|
-
llm_gemini-0.23.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|