how do I pass thinking config to Gemini 3 pro mode...
# ask-ai
r
how do I pass thinking config to Gemini 3 pro model?
t
Thanks for reaching out, Trevor. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're asking how to pass a thinking config to the Gemini 3 Pro model — thanks for that. Two quick clarifying points so I can give the exact code you need: 1. Do you mean the Gemini Live (realtime) API or the standard LLM inference path in LiveKit Inference? 2. Can you confirm the exact model ID you're using (for example
google/gemini-2.5-pro
style)? I don't have a documented "Gemini 3 Pro" model listed. If you mean the Gemini Live (realtime) API and can share the model ID, I can show the exact snippet to pass
thinking_config
(for example,
types.ThinkingConfig(include_thoughts=False)
) in the
RealtimeModel
constructor. Sources: Google Gemini LLM | LiveKit Docs | HIPAA Eligible Products and Services | LiveKit | Gemini Live API plugin | LiveKit docs | Large language models (LLM) | LiveKit Docs
r
its the pipeline model, using llm = gemini-3-pro. assume we ahve this model
t
You're asking about passing a thinking configuration to the pipeline LLM
gemini-3-pro
. Thank you — here's the direct answer. The
thinking_config
parameter is supported for the Gemini Live realtime API (
RealtimeModel
) and its realtime/agent sessions. It is not supported for pipeline/LLM models such as
gemini-3-pro
. You cannot pass
thinking_config
to the pipeline LLM. If you need thinking behavior (e.g., include or suppress model "thoughts"), switch to the realtime/agent path and use
RealtimeModel
with
thinking_config
, for example:
Copy code
from google.genai import types, realtime

llm = realtime.RealtimeModel(
  model="your-realtime-model-id",
  thinking_config=types.ThinkingConfig(include_thoughts=False),
)
If switching to realtime is not an option, tell me what thinking behavior you need (include_thoughts, verbosity, etc.) and I can suggest alternative approaches for the pipeline path.