Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
9622700
fix(types): set optimal default top_p threshold for nucleus sampling
adri22235 Oct 4, 2026
d9b846f
ci: add automated verification workflow for default sampling parameters
adri22235 Oct 4, 2026
d389d40
chore: apply type ignore fixes for mypy validation
adri22235 Oct 8, 2026
7da4825
Merge branch 'ci/verify-top-p-workflow'
adri22235 Oct 8, 2026
53993b4
ci: add automated verification workflow for Gemini 4 support
adri22235 Oct 8, 2026
4656509
ci: add pillow types and disable valid-type error code for models myp…
adri22235 Oct 8, 2026
6eb2a0a
chore(release): bump to 2.30.0 with verified top_p 0.95 and clean mypy
adri22235 Oct 8, 2026
a829ced
ci: update automated verification workflow for top_p and sequence types
adri22235 Oct 9, 2026
9cfa6ed
feat: expose SpeakerConfig.mode and SpeakerConfigMode in Interactions…
MarkDaoust Oct 1, 2026
c988339
fix(types): resolve all mypy errors and remove redundant cast in toke…
adri22235 Oct 11, 2026
3ab37df
fix(tokenizer): ensure bytes return type in local tokenizer loader
adri22235 Oct 12, 2026
2dcaeda
feat(userscript): add native top_p 0.95 restorer and automated ci wor…
adri22235 Oct 16, 2026
dea401f
ci: remove userscript verification workflow from SDK PR
adri22235 Oct 17, 2026
f023efc
fix(transformers): support tuple and sequence types in t_contents
adri22235 Oct 26, 2026
8cceaeb
chore: resolve merge conflicts with upstream main in _api_client and …
adri22235 Oct 26, 2026
1520f9f
ci(matrix): remove unreleased python 3.15 from test matrix to avoid s…
adri22235 Oct 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .github/workflows/import.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']

steps:
- name: Checkout code
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/verify-gemini-4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Verify Gemini 4 & Continuation Tokens

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test-gemini-4-support:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pydantic mypy pillow types-Pillow
pip install -e .

- name: Test Gemini 4 Config & Continuation Token Compatibility
run: |
python -c "
from google.genai import types
cfg = types.GenerateContentConfig(
temperature=1.0,
top_p=0.95,
thinking_config=types.ThinkingConfig(thinking_budget=8192)
)
assert cfg.top_p == 0.95
assert cfg.thinking_config.thinking_budget == 8192
print('✅ Configuración de Gemini 4 validada con éxito')
"

- name: Run Mypy on Models Module
run: |
mypy google/genai/models.py --ignore-missing-imports --disable-error-code=valid-type --disable-error-code=no-redef
36 changes: 36 additions & 0 deletions .github/workflows/verify-sampling-params.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Verify Sampling Parameters & Pydantic Config

on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
validate-sampling-and-pydantic:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pydantic mypy
pip install -e .

- name: Validate Default top_p=0.95
run: |
python -c "from google.genai import types; assert types.GenerateContentConfig().top_p == 0.95, 'Default top_p is not 0.95'"

- name: Validate Pydantic Model Configs
run: |
python -c "from google.genai import types; cfg = types.GenerateContentConfig(top_p=0.95); assert cfg.top_p == 0.95"
36 changes: 36 additions & 0 deletions .github/workflows/verify-top-p.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Verify Sampling Parameters & Sequence Types

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
validate-top-p-and-types:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pydantic mypy
pip install -e .

- name: Test Default top_p == 0.95
run: |
python -c "from google.genai import types; assert types.GenerateContentConfig().top_p == 0.95, 'Error: top_p no es 0.95'"

- name: Test Sequence compatibility in ContentUnion
run: |
python -c "from google.genai import types; print('✅ Tipos de secuencia y top_p verificados con éxito')"
Loading