rich-dusk-37560
10/03/2025, 5:28 PMgemini-2.5-flash-native-audio-preview-09-2025 supports thinking capabilities, with dynamic thinking enabled by default.
The thinkingBudget parameter guides the model on the number of thinking tokens to use when generating a response. You can disable thinking by setting thinkingBudget to 0. For more info on the thinkingBudget configuration details of the model, see the thinking budgets documentation.
Python
JavaScript
model = "gemini-2.5-flash-native-audio-preview-09-2025"
config = types.LiveConnectConfig(
response_modalities=["AUDIO"]
thinking_config=types.ThinkingConfig(
thinking_budget=1024,
)
)
async with client.aio.live.connect(model=model, config=config) as session:
# Send audio input and receive audiotall-airline-16756
10/03/2025, 5:28 PMtall-airline-16756
10/03/2025, 5:28 PMthinkingBudget parameter isn’t compatible with the gemini-2.5-flash-native-audio-preview-09-2025 model in LiveKit. This particular model is accessed through the Gemini Realtime API, which currently doesn’t support the thinkingBudget parameter.
To help manage user-perceived latency and how the agent behaves, you might find the thinking_sound parameter in the AgentSession configuration really useful. It plays audio during the agent’s "thinking" state, which can make the conversation feel smoother and more natural.
If you’re looking for more precise control over the reasoning duration, I’d recommend trying out the standard Google Gemini LLM plugin instead of the Realtime model, as it does support the thinkingBudget parameter.
Sources: Agent speech and audio | LiveKit Docs | Google Gemini LLM | LiveKit Docs | realtime/gemini_live_vision.py | plugins/google/src/beta/realtime/realtime_api.ts | livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/realtime...