llm-gemini 0.18.1__py3-none-any.whl → 0.19.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.
- {llm_gemini-0.18.1.dist-info → llm_gemini-0.19.1.dist-info}/METADATA +2 -1
- llm_gemini-0.19.1.dist-info/RECORD +7 -0
- {llm_gemini-0.18.1.dist-info → llm_gemini-0.19.1.dist-info}/WHEEL +1 -1
- llm_gemini.py +8 -1
- llm_gemini-0.18.1.dist-info/RECORD +0 -7
- {llm_gemini-0.18.1.dist-info → llm_gemini-0.19.1.dist-info}/entry_points.txt +0 -0
- {llm_gemini-0.18.1.dist-info → llm_gemini-0.19.1.dist-info}/licenses/LICENSE +0 -0
- {llm_gemini-0.18.1.dist-info → llm_gemini-0.19.1.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.19.1
|
4
4
|
Summary: LLM plugin to access Google's Gemini family of models
|
5
5
|
Author: Simon Willison
|
6
6
|
License: Apache-2.0
|
@@ -66,6 +66,7 @@ llm "A joke about a pelican and a walrus"
|
|
66
66
|
|
67
67
|
Other models are:
|
68
68
|
|
69
|
+
- `gemini-2.5-pro-preview-05-06` - latest paid Gemini 2.5 Pro preview
|
69
70
|
- `gemini-2.5-flash-preview-04-17` - Gemini 2.5 Flash preview
|
70
71
|
- `gemini-2.5-pro-exp-03-25` - free experimental release of Gemini 2.5 Pro
|
71
72
|
- `gemini-2.5-pro-preview-03-25` - paid preview of Gemini 2.5 Pro
|
@@ -0,0 +1,7 @@
|
|
1
|
+
llm_gemini.py,sha256=GJp1oDwcdLXy2QAYwp7jGN0KZsbmj_pJcqktYRC139Q,18700
|
2
|
+
llm_gemini-0.19.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
3
|
+
llm_gemini-0.19.1.dist-info/METADATA,sha256=PsXdnxt56uLdmbYnnCF9PZgQUi2EBx9uZEgEFW0l3IQ,8119
|
4
|
+
llm_gemini-0.19.1.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
5
|
+
llm_gemini-0.19.1.dist-info/entry_points.txt,sha256=n544bpgUPIBc5l_cnwsTxPc3gMGJHPtAyqBNp-CkMWk,26
|
6
|
+
llm_gemini-0.19.1.dist-info/top_level.txt,sha256=WUQmG6_2QKbT_8W4HH93qyKl_0SUteL4Ra6_PhyNGKU,11
|
7
|
+
llm_gemini-0.19.1.dist-info/RECORD,,
|
llm_gemini.py
CHANGED
@@ -38,6 +38,8 @@ GOOGLE_SEARCH_MODELS = {
|
|
38
38
|
"gemini-2.0-flash",
|
39
39
|
"gemini-2.5-pro-preview-03-25",
|
40
40
|
"gemini-2.5-pro-exp-03-25",
|
41
|
+
"gemini-2.5-flash-preview-04-17",
|
42
|
+
"gemini-2.5-pro-preview-05-06",
|
41
43
|
}
|
42
44
|
|
43
45
|
# Older Google models used google_search_retrieval instead of google_search
|
@@ -89,6 +91,8 @@ def register_models(register):
|
|
89
91
|
"gemini-2.5-pro-preview-03-25",
|
90
92
|
# 17th April 2025:
|
91
93
|
"gemini-2.5-flash-preview-04-17",
|
94
|
+
# 6th May 2025:
|
95
|
+
"gemini-2.5-pro-preview-05-06",
|
92
96
|
]:
|
93
97
|
can_google_search = model_id in GOOGLE_SEARCH_MODELS
|
94
98
|
can_thinking_budget = model_id in THINKING_BUDGET_MODELS
|
@@ -365,7 +369,10 @@ class _SharedGemini:
|
|
365
369
|
candidate.pop("content", None)
|
366
370
|
usage = response.response_json.pop("usageMetadata")
|
367
371
|
input_tokens = usage.pop("promptTokenCount", None)
|
368
|
-
|
372
|
+
# See https://github.com/simonw/llm-gemini/issues/75#issuecomment-2861827509
|
373
|
+
candidates_token_count = usage.get("candidatesTokenCount") or 0
|
374
|
+
thoughts_token_count = usage.get("thoughtsTokenCount") or 0
|
375
|
+
output_tokens = candidates_token_count + thoughts_token_count
|
369
376
|
usage.pop("totalTokenCount", None)
|
370
377
|
if input_tokens is not None:
|
371
378
|
response.set_usage(
|
@@ -1,7 +0,0 @@
|
|
1
|
-
llm_gemini.py,sha256=mPnnJ5gWU1NS8cxmq2JDiKGq7tXaP1oz7lsMtRv3Ae4,18319
|
2
|
-
llm_gemini-0.18.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
3
|
-
llm_gemini-0.18.1.dist-info/METADATA,sha256=Y6sJT4JCMXtnk6zP6EaQ6mEEZYL7vwfwOg04IdTI6UU,8049
|
4
|
-
llm_gemini-0.18.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
5
|
-
llm_gemini-0.18.1.dist-info/entry_points.txt,sha256=n544bpgUPIBc5l_cnwsTxPc3gMGJHPtAyqBNp-CkMWk,26
|
6
|
-
llm_gemini-0.18.1.dist-info/top_level.txt,sha256=WUQmG6_2QKbT_8W4HH93qyKl_0SUteL4Ra6_PhyNGKU,11
|
7
|
-
llm_gemini-0.18.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|