how to turn off thinking in google realtime model ...
# ask-ai
r
how to turn off thinking in google realtime model i am using gemini 2.5 flash native preview
t
Thanks for reaching out, Rahul. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hi there! To disable thinking in the Google Realtime Model
gemini-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:
Copy code
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:
Copy code
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_...
r
I want to completely disable internal thinking
t
I’m happy to help you disable internal thinking in the Google Realtime Model
gemini-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:
Copy code
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