llm-gemini 0.4.1__tar.gz → 0.4.2__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.4.1
3
+ Version: 0.4.2
4
4
  Summary: LLM plugin to access Google's Gemini family of models
5
5
  Author: Simon Willison
6
6
  License: Apache-2.0
@@ -60,7 +60,8 @@ Other models are:
60
60
 
61
61
  - `gemini-1.5-flash-latest`
62
62
  - `gemini-1.5-flash-8b-latest` - the least expensive
63
- - `gemini-exp-1114` - recent experimental
63
+ - `gemini-exp-1114` - recent experimental #1
64
+ - `gemini-exp-1121` - recent experimental #2
64
65
 
65
66
  ### Images, audio and video
66
67
 
@@ -157,3 +158,16 @@ To run the tests:
157
158
  ```bash
158
159
  pytest
159
160
  ```
161
+
162
+ This project uses [pytest-recording](https://github.com/kiwicom/pytest-recording) to record Gemini API responses for the tests.
163
+
164
+ If you add a new test that calls the API you can capture the API response like this:
165
+ ```bash
166
+ PYTEST_GEMINI_API_KEY="$(llm keys get gemini)" pytest --record-mode once
167
+ ```
168
+ You will need to have stored a valid Gemini API key using this command first:
169
+ ```bash
170
+ llm keys set gemini
171
+ # Paste key here
172
+ ```
173
+
@@ -40,7 +40,8 @@ Other models are:
40
40
 
41
41
  - `gemini-1.5-flash-latest`
42
42
  - `gemini-1.5-flash-8b-latest` - the least expensive
43
- - `gemini-exp-1114` - recent experimental
43
+ - `gemini-exp-1114` - recent experimental #1
44
+ - `gemini-exp-1121` - recent experimental #2
44
45
 
45
46
  ### Images, audio and video
46
47
 
@@ -137,3 +138,16 @@ To run the tests:
137
138
  ```bash
138
139
  pytest
139
140
  ```
141
+
142
+ This project uses [pytest-recording](https://github.com/kiwicom/pytest-recording) to record Gemini API responses for the tests.
143
+
144
+ If you add a new test that calls the API you can capture the API response like this:
145
+ ```bash
146
+ PYTEST_GEMINI_API_KEY="$(llm keys get gemini)" pytest --record-mode once
147
+ ```
148
+ You will need to have stored a valid Gemini API key using this command first:
149
+ ```bash
150
+ llm keys set gemini
151
+ # Paste key here
152
+ ```
153
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: llm-gemini
3
- Version: 0.4.1
3
+ Version: 0.4.2
4
4
  Summary: LLM plugin to access Google's Gemini family of models
5
5
  Author: Simon Willison
6
6
  License: Apache-2.0
@@ -60,7 +60,8 @@ Other models are:
60
60
 
61
61
  - `gemini-1.5-flash-latest`
62
62
  - `gemini-1.5-flash-8b-latest` - the least expensive
63
- - `gemini-exp-1114` - recent experimental
63
+ - `gemini-exp-1114` - recent experimental #1
64
+ - `gemini-exp-1121` - recent experimental #2
64
65
 
65
66
  ### Images, audio and video
66
67
 
@@ -157,3 +158,16 @@ To run the tests:
157
158
  ```bash
158
159
  pytest
159
160
  ```
161
+
162
+ This project uses [pytest-recording](https://github.com/kiwicom/pytest-recording) to record Gemini API responses for the tests.
163
+
164
+ If you add a new test that calls the API you can capture the API response like this:
165
+ ```bash
166
+ PYTEST_GEMINI_API_KEY="$(llm keys get gemini)" pytest --record-mode once
167
+ ```
168
+ You will need to have stored a valid Gemini API key using this command first:
169
+ ```bash
170
+ llm keys set gemini
171
+ # Paste key here
172
+ ```
173
+
@@ -38,6 +38,7 @@ def register_models(register):
38
38
  "gemini-1.5-flash-8b-latest",
39
39
  "gemini-1.5-flash-8b-001",
40
40
  "gemini-exp-1114",
41
+ "gemini-exp-1121",
41
42
  ]:
42
43
  register(GeminiPro(model_id), AsyncGeminiPro(model_id))
43
44
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "llm-gemini"
3
- version = "0.4.1"
3
+ version = "0.4.2"
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