LLM_THINKING.
Recommended settings
Set these on bothsdk-backend and dashboard-backend:
Then make sure every proxy in front of
sdk-backend waits longer than the turn
budget. See What the browser needs.
Supported providers
LLM_CLIENT_TYPE picks one provider for the whole install, and
LLM_MODEL_NAME the model. Both backends refuse to start without
LLM_MODEL_NAME; the chart sets it to gemini-3-flash-preview.
Prompt sections and request settings follow the model’s family. The families
Moss is tuned for include:
- Gemini:
gemini-3-flash,gemini-3-pro,gemini-3.1-pro,gemini-3.1-flash-lite-image,gemini-3.5-flash,gemini-3.5-flash-lite,gemini-3.6-flash,gemini-3.7-flash,gemini-3.8-flashandgemini-4-hydrogen. - OpenAI and Azure OpenAI:
gpt-6.1-terra.
LLM_CLIENT_TYPE=openrouter stops the backends at startup. If
it’s in the moss-backend Secret, it also stops the migrate Job, so
helm upgrade fails at its pre-upgrade step before any pod changes. Change it
before you upgrade.
What the model settings cover
Moss uses three kinds of model. Only the first followsLLM_*:
On a Vertex AI install, the Embedding model field in Create New
Application preselects Google Gemini Embedding 2 when the dashboard also
has
GOOGLE_AUTH_MODE=vertex. Elsewhere it preselects Voyage 3.5.
Keeping model traffic in a region
On Vertex AI,GOOGLE_CLOUD_LOCATION decides which Google endpoint Moss sends
model requests to. Set the same value on sdk-backend, dashboard-backend and
the worker.
To keep every model request on one multi-region endpoint:
- Set
GOOGLE_AUTH_MODE=vertex,GOOGLE_CLOUD_PROJECTandGOOGLE_CLOUD_LOCATION=eu(orus) on both backends and the worker, andGOOGLE_AUTH_MODE=vertexon the dashboard. Give the three backend-image workloads a Google Cloud identity with Vertex AI access; the chart README’s “Gemini via Vertex AI (IAM)” section covers GKE Workload Identity, Workload Identity Federation and key files. - Set
LLM_MODEL_NAMEon both backends to a model Google serves at that location. The chart’s default,gemini-3-flash-preview, isn’t served oneuorus;gemini-3.8-flashis one that is. - Create every application with Google Gemini Embedding 2. An application on Voyage or OpenAI embeddings sends its questions and knowledge content to that provider, and its embedding model can’t be changed later.
- Keep
ANNOTATOR_LLM_PROVIDERatgoogle, and check thatANNOTATOR_LLM_MODELis served at your location. - Leave
LLM_API_KEYunset. Vertex AI needs no key. - If you set
LLM_PROFILES, list only Vertex AI profiles at the same location, or limit other profiles withallowedApplications. An application on another profile sends its chats and its dashboard AI features to that profile’s endpoint. - Add knowledge as Markdown uploads, or from Document360 or, from 0.17.0, Intercom. Website sources are fetched through Firecrawl, a hosted service outside your install (see Network).
From 0.17.0, on an install with
GOOGLE_AUTH_MODE=vertex, Copilot,
conversation insights, monitors, procedure authoring, self-healing and
session evaluations call Vertex AI at GOOGLE_CLOUD_LOCATION. On 0.16.x they
called the Gemini Developer API with LLM_API_KEY, or failed when it was
unset. If you set INSIGHT_SWEEP_ENABLED=false on dashboard-backend
because of this, you can turn it back on. With the default
GOOGLE_AUTH_MODE=api_key, nothing changes.Using your own Azure OpenAI deployment
From 0.17.0, Moss can answer on a deployment in your own Azure OpenAI resource. Set these on both backends:- Other Azure hosts. The endpoint can also be on
<resource>.openai.azure.usor<resource>.services.ai.azure.com. Any other host, such as an Azure API Management gateway, must be listed inLLM_AZURE_OPENAI_GATEWAY_HOSTS(host names or IP addresses, comma-separated) on both backends, or they refuse to start. WithLLM_THINKINGset, requests use the Responses API, so a gateway must pass it through. - Without a key. For a resource with key sign-in turned off, set
LLM_AZURE_OPENAI_AUTH=workload_identity. The backends then sign in with a Microsoft Entra ID token from the pod’s Azure workload identity. The identity needs theCognitive Services OpenAI Userrole on the resource, and both backends need to reachlogin.microsoftonline.com. This works only on<resource>.openai.azure.comor a listed gateway. The chart README’s “Azure OpenAI with workload identity” section has the setup for AKS and other clusters. - What stays elsewhere. Embeddings and image annotation don’t run on Azure OpenAI. They go to the providers in What the model settings cover.
A different model per application
From 0.17.0,LLM_PROFILES can offer further models, and an application’s
admin can choose one of them in the Model card on
Configure > Behavior. Everything else answers on the LLM_* model, which
also answers for a chosen model that
fails, unless that profile is marked noFallback. Embeddings and image
annotation don’t follow the choice, so a profile doesn’t keep all of an
application’s data with one provider. The chart README’s “Model profiles”
section has every field and the fallback rules.
Settings that affect response time
What LLM_THINKING does
Only
minimal, low, medium and high are accepted. From 0.17.0 any other
value, such as a number, stops the backends at startup. If that value is in the
moss-backend Secret, it also stops the migrate Job, so helm upgrade fails
at its pre-upgrade step before any pod changes. Fix it before you upgrade.
Set the same value on dashboard-backend. On OpenAI and Azure OpenAI, the
dashboard’s AI features send the same reasoning effort as chat. On Gemini,
Copilot, conversation insights, monitors and procedure authoring send no
thinking level, so Google’s default for the model applies to them.
Where the time goes
- Turn on tracing. Set
OTEL_EXPORTER_OTLP_ENDPOINTonsdk-backend. Operations lists the spans and log fields. - Compare the spans of a slow turn. Under the
POST /api/v1/queryrequest span,llm.invokeholds the model calls, and in a turn that calls tools, the tool calls between them.rag.searchis the knowledge-base search, andsession.hydrateloading the session. - Count the model rounds. In a turn that can call tools,
sdk-backendwrites atool_loop_roundlog line for each model call, withmodel_latency_ms, the tokenusageand thetool_callsthe model asked for. A turn that calls tools makes one model call per round, so each tool round adds a full model wait.
model_latency_ms), lower
LLM_THINKING or try a lighter model. If a procedure makes many rounds, ask
for fewer lookups in its instructions. If the time is in the tools, look at the
API or MCP server they call.
The step loader can show users each step while Moss works. It doesn’t make
answers faster. It needs streamActivity: true and
appearance.chrome.loader: 'steps' in the SDK, and a network path that passes
Server-Sent Events: see
What the browser needs.
”Took too long” and “high traffic” replies
Before 0.16.23, a timed-out request also got the “high traffic” reply.
If a proxy in front of
sdk-backend closes the request before the turn budget
ends, the user gets an error instead of either reply. Give every proxy on the
path a read timeout longer than LLM_TOTAL_TIMEOUT_SECONDS.
Common questions
Why are answers slow, and what can we change? Most of the wait is the model reasoning. SetLLM_THINKING=low on both
backends, then measure with the tracing steps before
changing anything else.
Answers got faster, or different, after upgrading to 0.17.0. Why?
With LLM_THINKING unset, 0.17.0 uses the lowest level the Gemini model
supports, where 0.16.x left the level to Google. Set LLM_THINKING to pick the
level yourself.
Which models can Moss use?
Gemini through the Gemini API or Vertex AI, OpenAI’s API, and, from 0.17.0,
Azure OpenAI. See Supported providers for the tuned
model families.
Can we keep model traffic in the EU?
On Vertex AI, set GOOGLE_CLOUD_LOCATION=eu on all three workloads and follow
the checklist in Keeping model traffic in a region.
Embeddings and image annotation have their own settings, and both need
checking.
Can Moss use our own Azure OpenAI deployment?
Yes, from 0.17.0, with a key or with Azure workload identity. See
Using your own Azure OpenAI deployment.
We saw “high traffic” when almost no one was using Moss. Why?
The reply means the model provider kept turning the requests away (429 or 5xx),
or Moss couldn’t connect to it, not that your users were busy. Check the
provider’s quota and status, and that the backends can reach its host (see
Network).
Can Moss fail over to a second provider?
No. The install uses the one provider LLM_CLIENT_TYPE names. The only
fallback is from an application’s chosen model profile to the default model.