Skip to content

Commit 749b673

Browse files
committed
fix: google-genai version
1 parent 044c0f4 commit 749b673

5 files changed

Lines changed: 28 additions & 88 deletions

File tree

.github/workflows/mypy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
- name: Set up Python
1818
run: uv sync
1919

20+
- name: install mypy
21+
run: uv pip install mypy
22+
2023
- name: Type Check Source Code
21-
run: uv run mypy src
22-
24+
run: mypy src

.github/workflows/pylint.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616

1717
- name: Set up Python
1818
run: uv sync
19+
20+
- name: Install Pylint
21+
run: uv pip install pylint
1922

2023
- name: Lint Source Code
21-
run: uv run pylint src
24+
run: pylint src

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,21 @@ description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.12"
77
dependencies = [
8-
"anthropic>=0.49.0",
8+
"anthropic==0.49.0",
99
"dacite>=1.8.1",
1010
"deprecated>=1.2.18",
1111
"dotenv>=0.9.9",
1212
"fire==0.5.0",
1313
"funcy==2.0",
1414
"funcy-chain==0.2.0",
15-
"google-genai>=1.11.0",
15+
"google-genai==1.31.0",
1616
"hypothesis>=6.98.6",
1717
"markdown-to-json==2.1.2",
1818
"matplotlib>=3.8.3",
1919
"numpy>=1.26.4",
20-
"ollama>=0.5.3",
21-
"openai>=1.99.9",
20+
"ollama==0.5.3",
21+
"openai==1.99.9",
2222
"pathos>=0.3.3",
23-
"pylint>=3.3.6",
2423
"pytest>=8.0.0",
2524
"python-dotenv==1.0.1",
2625
"requests==2.32.3",

src/tfbench/lm/_google.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def _gen(self, prompt: str) -> LMAnswer:
5656

5757
response = self.client.models.generate_content(
5858
model=self.model_name,
59-
contents=[prompt],
59+
contents=prompt,
6060
config=GenerateContentConfig(
6161
system_instruction=[self.instruction],
6262
),
@@ -90,7 +90,7 @@ def _gen(self, prompt: str) -> LMAnswer:
9090

9191
response = self.client.models.generate_content(
9292
model=self.model_name,
93-
contents=[prompt],
93+
contents=prompt,
9494
config=GenerateContentConfig(
9595
system_instruction=[self.instruction],
9696
thinking_config=ThinkingConfig(

uv.lock

Lines changed: 14 additions & 78 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)