llm-gemini 0.21__py3-none-any.whl → 0.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llm-gemini
3
- Version: 0.21
3
+ Version: 0.23
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
@@ -75,10 +75,10 @@ result = runner.invoke(cli.cli, ["models", "-q", "gemini/"])
75
75
  lines = reversed(result.output.strip().split("\n"))
76
76
  to_output = []
77
77
  NOTES = {
78
- "gemini/gemini-2.5-pro-preview-05-06": "Latest paid Gemini 2.5 Pro preview",
79
- "gemini/gemini-2.5-flash-preview-05-20": "Gemini 2.5 Flash preview",
80
- "gemini/gemini-2.5-flash-preview-04-17": "Earlier Gemini 2.5 Flash preview",
81
- "gemini/gemini-2.5-pro-exp-03-25": "Free experimental release of Gemini 2.5 Pro",
78
+ "gemini/gemini-2.5-pro": "Gemini 2.5 Pro",
79
+ "gemini/gemini-2.5-flash": "Gemini 2.5 Flash",
80
+ "gemini/gemini-2.5-flash-lite-preview-06-17": "Gemini 2.5 Lite Preview",
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",
84
84
  }
@@ -93,11 +93,15 @@ for line in lines:
93
93
  )
94
94
  cog.out("\n".join(to_output))
95
95
  ]]] -->
96
- - `gemini/gemini-2.5-flash-preview-05-20`: Gemini 2.5 Flash preview
97
- - `gemini/gemini-2.5-pro-preview-05-06`: Latest paid Gemini 2.5 Pro preview
98
- - `gemini/gemini-2.5-flash-preview-04-17`: Earlier Gemini 2.5 Flash preview
96
+ - `gemini/gemini-2.5-pro`: Gemini 2.5 Pro
97
+ - `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
+ - `gemini/gemini-2.5-pro-preview-06-05`
100
+ - `gemini/gemini-2.5-flash-preview-05-20`: Gemini 2.5 Flash preview (priced differently from 2.5 Flash)
101
+ - `gemini/gemini-2.5-pro-preview-05-06`
102
+ - `gemini/gemini-2.5-flash-preview-04-17`
99
103
  - `gemini/gemini-2.5-pro-preview-03-25`
100
- - `gemini/gemini-2.5-pro-exp-03-25`: Free experimental release of Gemini 2.5 Pro
104
+ - `gemini/gemini-2.5-pro-exp-03-25`
101
105
  - `gemini/gemini-2.0-flash-lite`
102
106
  - `gemini/gemini-2.0-pro-exp-02-05`
103
107
  - `gemini/gemini-2.0-flash`
@@ -0,0 +1,7 @@
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,,
llm_gemini.py CHANGED
@@ -41,6 +41,10 @@ GOOGLE_SEARCH_MODELS = {
41
41
  "gemini-2.5-flash-preview-04-17",
42
42
  "gemini-2.5-pro-preview-05-06",
43
43
  "gemini-2.5-flash-preview-05-20",
44
+ "gemini-2.5-pro-preview-06-05",
45
+ "gemini-2.5-pro",
46
+ "gemini-2.5-flash",
47
+ "gemini-2.5-flash-lite-preview-06-17",
44
48
  }
45
49
 
46
50
  # Older Google models used google_search_retrieval instead of google_search
@@ -62,6 +66,10 @@ THINKING_BUDGET_MODELS = {
62
66
  "gemini-2.5-pro-preview-03-25",
63
67
  "gemini-2.5-pro-preview-05-06",
64
68
  "gemini-2.5-flash-preview-05-20",
69
+ "gemini-2.5-pro-preview-06-05",
70
+ "gemini-2.5-pro",
71
+ "gemini-2.5-flash",
72
+ "gemini-2.5-flash-lite-preview-06-17",
65
73
  }
66
74
 
67
75
  NO_VISION_MODELS = {"gemma-3-1b-it", "gemma-3n-e4b-it"}
@@ -142,6 +150,12 @@ def register_models(register):
142
150
  "gemini-2.5-pro-preview-05-06",
143
151
  # 20th May 2025:
144
152
  "gemini-2.5-flash-preview-05-20",
153
+ # 5th June 2025:
154
+ "gemini-2.5-pro-preview-06-05",
155
+ # 17th June 2025:
156
+ "gemini-2.5-flash-lite-preview-06-17",
157
+ "gemini-2.5-flash",
158
+ "gemini-2.5-pro",
145
159
  ):
146
160
  can_google_search = model_id in GOOGLE_SEARCH_MODELS
147
161
  can_thinking_budget = model_id in THINKING_BUDGET_MODELS
@@ -660,4 +674,7 @@ def register_commands(cli):
660
674
  f"https://generativelanguage.googleapis.com/v1beta/files?key={key}",
661
675
  )
662
676
  response.raise_for_status()
663
- click.echo(json.dumps(response.json()["files"], indent=2))
677
+ if "files" in response.json():
678
+ click.echo(json.dumps(response.json()["files"], indent=2))
679
+ else:
680
+ click.echo("No files uploaded to the Gemini API.", err=True)
@@ -1,7 +0,0 @@
1
- llm_gemini.py,sha256=UX6G2_33rQ6_XH0v8fR3eUugTQGDOfTb6FUmAWO_fZI,23072
2
- llm_gemini-0.21.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
3
- llm_gemini-0.21.dist-info/METADATA,sha256=C7C0De124aFPc_2eg0o_wr15akt1KJnuS5suiHLB9p4,10416
4
- llm_gemini-0.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
5
- llm_gemini-0.21.dist-info/entry_points.txt,sha256=n544bpgUPIBc5l_cnwsTxPc3gMGJHPtAyqBNp-CkMWk,26
6
- llm_gemini-0.21.dist-info/top_level.txt,sha256=WUQmG6_2QKbT_8W4HH93qyKl_0SUteL4Ra6_PhyNGKU,11
7
- llm_gemini-0.21.dist-info/RECORD,,