Skip to main content
This page is for operators of a self-hosted install. It covers which models Moss can run on, where model requests go, and what decides how long a chat answer takes. Most of the time a chat answer takes is the model reasoning before it answers. The setting with the largest effect is LLM_THINKING. Set these on both sdk-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.
In the Helm chart, each workload’s env is a list, and a list in your values file replaces the chart’s whole list. When you add LLM_THINKING to sdk-backend.env or dashboard-backend.env, repeat the chart’s default entries for that workload too. The chart README’s Environment Variables section shows how.

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-flash and gemini-4-hydrogen.
  • OpenAI and Azure OpenAI: gpt-6.1-terra.
There is no automatic failover to a second provider. A call the provider turns away with a rate limit or a server error is retried on the same provider, and then the turn fails. From 0.17.0, 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 follows LLM_*: 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:
  1. Set GOOGLE_AUTH_MODE=vertex, GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATION=eu (or us) on both backends and the worker, and GOOGLE_AUTH_MODE=vertex on 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.
  2. Set LLM_MODEL_NAME on both backends to a model Google serves at that location. The chart’s default, gemini-3-flash-preview, isn’t served on eu or us; gemini-3.8-flash is one that is.
  3. 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.
  4. Keep ANNOTATOR_LLM_PROVIDER at google, and check that ANNOTATOR_LLM_MODEL is served at your location.
  5. Leave LLM_API_KEY unset. Vertex AI needs no key.
  6. If you set LLM_PROFILES, list only Vertex AI profiles at the same location, or limit other profiles with allowedApplications. An application on another profile sends its chats and its dashboard AI features to that profile’s endpoint.
  7. 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.
These settings choose the endpoint Moss sends model requests to. What the provider does with a request at that endpoint is set by your agreement with that provider.

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.us or <resource>.services.ai.azure.com. Any other host, such as an Azure API Management gateway, must be listed in LLM_AZURE_OPENAI_GATEWAY_HOSTS (host names or IP addresses, comma-separated) on both backends, or they refuse to start. With LLM_THINKING set, 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 the Cognitive Services OpenAI User role on the resource, and both backends need to reach login.microsoftonline.com. This works only on <resource>.openai.azure.com or 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.
0.16.25 doesn’t know azure_openai. Before rolling an install on Azure OpenAI back to 0.16.25, set the model settings back to a provider 0.16.25 supports, or its backends and migrations stop at startup.

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

  1. Turn on tracing. Set OTEL_EXPORTER_OTLP_ENDPOINT on sdk-backend. Operations lists the spans and log fields.
  2. Compare the spans of a slow turn. Under the POST /api/v1/query request span, llm.invoke holds the model calls, and in a turn that calls tools, the tool calls between them. rag.search is the knowledge-base search, and session.hydrate loading the session.
  3. Count the model rounds. In a turn that can call tools, sdk-backend writes a tool_loop_round log line for each model call, with model_latency_ms, the token usage and the tool_calls the model asked for. A turn that calls tools makes one model call per round, so each tool round adds a full model wait.
If most of the time is model time (the sum of 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. Set LLM_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.