Skip to content

Conversation

DouweM
Copy link
Collaborator

@DouweM DouweM commented Sep 9, 2025

This PR adds seed parameter support to GoogleModel, allowing Gemini models to respect the seed field from ModelSettings for more deterministic output.

Changes

  • Add seed parameter to GenerateContentConfigDict in GoogleModel._build_content_and_config
  • Add seed parameter to GenerationConfigDict in GoogleModel.count_tokens for Vertex AI
  • Update ModelSettings docstring to include Gemini in supported providers

Testing

  • All linting and formatting checks pass
  • Google model tests pass
  • No regressions introduced

Fixes #2838

Generated with Claude Code

- Add seed parameter to GenerateContentConfigDict in GoogleModel._build_content_and_config
- Add seed parameter to GenerationConfigDict in GoogleModel.count_tokens for Vertex AI
- Update ModelSettings docstring to include Gemini in the list of supported providers for seed parameter

Fixes #2838

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Douwe Maan <[email protected]>
@DouweM DouweM self-assigned this Sep 9, 2025
@DouweM DouweM enabled auto-merge (squash) September 9, 2025 15:36
@DouweM DouweM merged commit 085a4c3 into main Sep 9, 2025
25 checks passed
@DouweM DouweM deleted the claude/issue-2838-20250909-1526 branch September 9, 2025 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gemini models are not seeded
1 participant