llm-gemini 0.7__tar.gz → 0.8__tar.gz

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.1
2
2
  Name: llm-gemini
3
- Version: 0.7
3
+ Version: 0.8
4
4
  Summary: LLM plugin to access Google's Gemini family of models
5
5
  Author: Simon Willison
6
6
  License: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: llm-gemini
3
- Version: 0.7
3
+ Version: 0.8
4
4
  Summary: LLM plugin to access Google's Gemini family of models
5
5
  Author: Simon Willison
6
6
  License: Apache-2.0
@@ -41,6 +41,7 @@ def register_models(register):
41
41
  "gemini-exp-1121",
42
42
  "gemini-exp-1206",
43
43
  "gemini-2.0-flash-exp",
44
+ "gemini-2.0-flash-thinking-exp-1219",
44
45
  ]:
45
46
  register(GeminiPro(model_id), AsyncGeminiPro(model_id))
46
47
 
@@ -154,7 +155,7 @@ class _SharedGemini:
154
155
  if response.prompt.prompt:
155
156
  parts.append({"text": response.prompt.prompt})
156
157
  messages.append({"role": "user", "parts": parts})
157
- messages.append({"role": "model", "parts": [{"text": response.text()}]})
158
+ messages.append({"role": "model", "parts": [{"text": response.text_or_raise()}]})
158
159
 
159
160
  parts = []
160
161
  if prompt.prompt:
@@ -334,4 +335,4 @@ class GeminiEmbeddingModel(llm.EmbeddingModel):
334
335
  )
335
336
 
336
337
  response.raise_for_status()
337
- return [item["values"] for item in response.json()["embeddings"]]
338
+ return [item["values"] for item in response.json()["embeddings"]]
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "llm-gemini"
3
- version = "0.7"
3
+ version = "0.8"
4
4
  description = "LLM plugin to access Google's Gemini family of models"
5
5
  readme = "README.md"
6
6
  authors = [{name = "Simon Willison"}]
File without changes
File without changes
File without changes
File without changes