Skip to content

fix: forward thinking config to live Gemini sessions#5823

Open
he-yufeng wants to merge 1 commit into
google:mainfrom
he-yufeng:fix/live-thinking-config-5805
Open

fix: forward thinking config to live Gemini sessions#5823
he-yufeng wants to merge 1 commit into
google:mainfrom
he-yufeng:fix/live-thinking-config-5805

Conversation

@he-yufeng
Copy link
Copy Markdown

Summary

  • Forward GenerateContentConfig.thinking_config into LiveConnectConfig before opening a Gemini live session
  • Preserve existing behavior when no thinking config is set
  • Add a connect-level regression test for the live config handoff

Fixes #5805.

To verify

  • python -m py_compile src\google\adk\models\google_llm.py tests\unittests\models\test_google_llm.py
  • uv run pytest tests\unittests\models\test_google_llm.py::test_connect_forwards_thinking_config_to_live_config tests\unittests\models\test_google_llm.py::test_connect_without_custom_headers -q
  • uv run pytest tests\unittests\models\test_google_llm.py -q
  • uv run ruff check src\google\adk\models\google_llm.py
  • git diff --check

Note: uv run ruff check src\google\adk\models\google_llm.py tests\unittests\models\test_google_llm.py reports pre-existing lint in test_google_llm.py (os unused, and an older unused connection binding). I left those unrelated lines untouched.

@adk-bot adk-bot added the live [Component] This issue is related to live, voice and video chat label May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

live [Component] This issue is related to live, voice and video chat

Projects

None yet

Development

Successfully merging this pull request may close these issues.

thinking_config silently ignored in Runner.run_live() for streaming models

2 participants