Skip to content

fix(google): support Gemma 4 thinking levels - #7080

Closed
dawNotPoi wants to merge 1 commit into
livekit:mainfrom
dawNotPoi:fix/7071-gemma4-thinking-level
Closed

fix(google): support Gemma 4 thinking levels#7080
dawNotPoi wants to merge 1 commit into
livekit:mainfrom
dawNotPoi:fix/7071-gemma4-thinking-level

Conversation

@dawNotPoi

Copy link
Copy Markdown
Contributor

Summary

  • route Gemma 4 through the thinking-level configuration path without enabling Gemini-3-only behavior
  • preserve include_thoughts and reject unsupported budget-only configurations with an actionable error
  • validate the Gemma 4 minimal/high levels and cover the final generated request configuration

Verification

  • uv run pytest -q tests/test_google_thought_signatures.py tests/test_plugin_google_llm.py (76 passed)
  • uv run ruff format --check on changed files
  • uv run ruff check on changed files
  • uv run --group typing mypy --platform linux -p livekit.plugins.google

Fixes #7071

@longcw

longcw commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

closing in favor of #7095 with some clean up and validation, you're credited there as co-author

@longcw longcw closed this Sep 2, 2026
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.

google plugin: thinking_config gate misclassifies Gemma 4, making thinking uncontrollable

2 participants