rapid-van-16677
10/31/2025, 6:07 AMtall-airline-16756
10/31/2025, 6:07 AMtall-airline-16756
10/31/2025, 6:08 AMgemini-2.5-flash-native-audio-preview, you’ll want to set the thinking_config parameter with include_thoughts=False when you initialize the model. This helps prevent thoughts from being sent.
Here’s a friendly example in Python to guide you:
from livekit.plugins import google
from google.genai import types
# Disable thinking by setting include_thoughts=False
model = google.beta.realtime.RealtimeModel(
model="gemini-2.5-flash-native-audio-preview",
thinking_config=types.ThinkingConfig(include_thoughts=False) # Prevents thoughts from being sent
)
And if you’re working with Node.js, here’s how you can do it:
import { RealtimeModel } from '@livekit/agents-google/beta/realtime';
const model = new RealtimeModel({
model: "gemini-2.5-flash-native-audio-preview",
thinkingConfig: {
includeThoughts: false // Prevents thoughts from being sent
}
});
If you have any questions or would like more examples, please don’t hesitate to ask—I’m here to help!
Sources: plugins/google/src/beta/realtime/api_proto.ts | Gemini Live API plugin | LiveKit docs | livekit-plugins/livekit-plugins-google/livekit/plugins/google/realtime/api_...rapid-van-16677
10/31/2025, 8:15 AMtall-airline-16756
10/31/2025, 8:16 AMgemini-2.5-flash-native-audio-preview. You can do this by setting the thinking_config parameter with include_thoughts=False. This way, the model’s internal thoughts won’t be forwarded or appear in the output transcripts.
Here’s a simple example in Python to guide you:
from livekit.plugins.google.beta.realtime import RealtimeModel
from google.genai import types
model = RealtimeModel(
model="gemini-2.5-flash-native-audio-preview",
thinking_config=types.ThinkingConfig(include_thoughts=False)
)
Just so you know, the model will still do internal thinking behind the scenes for reasoning, but those thoughts won’t show up in the output. If you have any questions or want me to walk you through it further, please don’t hesitate to ask—I’m here to help!
Sources: Gemini Live API plugin | LiveKit docs | realtime/gemini_realtime_api.py