Models
Connection settings (type, endpoint, credentials) live in a providers section; each model entry references a provider via provider: <key>.
Models Configuration (YAML)
Configure your LLM models in core.config.yaml. Provider keys must be lowercase (env-var name segments are lowercased, so uppercase keys would silently miss their env overrides). The placeholder values in this example, as well as any local demo values, must not be used unchanged in production or test environments:
providers:
my_gateway:
type: "openai" # "openai" or "azure"
endpoint: "https://your-litellm-gateway.example.org/"
api_version: "" # only for azure
# Provide api_key via MUCGPT_CORE_PROVIDERS__MY_GATEWAY__API_KEY instead of storing it here.
models:
- provider: "my_gateway" # required reference into providers
id: "<your-llm-name>"
deployment: "" # only for azure
model_info:
auto_enrich_from_model_info_endpoint: true
max_output_tokens: 16384
max_input_tokens: 128000
display_name: "<human-readable name>" # Optional: shown instead of id
description: "<description>"
short_description: "<one-line summary>"
input_cost_per_token: 0.00000009
output_cost_per_token: 0.00000036
supports_reasoning: false
knowledge_cut_off: "2024-07-01"See mucgpt-core-service/config.yaml.example and mucgpt-assistant-service/config.yaml.example for complete examples.
Note:
api_keyis configured per provider in theproviderssection and — unlike the old per-model key — can be overridden via environment variables; see Secrets.
Models Configuration (Environment Variable)
Alternatively, models can be configured via environment variables. Providers are set as a JSON object (MUCGPT_CORE_PROVIDERS), models as a JSON array (MUCGPT_CORE_MODELS) whose entries reference a provider instead of carrying inline endpoint/credentials:
MUCGPT_CORE_PROVIDERS='{
"my_gateway": {
"type": "openai",
"endpoint": "https://your-litellm-gateway.example.org/",
"api_key": "<your-sk>"
}
}'
MUCGPT_CORE_MODELS='[
{
"provider": "my_gateway",
"id": "<your-llm-name>",
"model_info": {
"auto_enrich_from_model_info_endpoint": true,
"max_output_tokens": "<number>",
"max_input_tokens": "<number>",
"description": "<description>"
}
}
]'Provider fields (providers.<key>):
type: The provider type (openaiorazure).endpoint: The API endpoint URL for the provider.api_key: The API key or secret for authentication, configured per provider.api_version: Azure API version (only needed fortype: "azure").
Model fields (models[]):
provider: Required reference to a key in theproviderssection.id: The identifier of your LLM model. Used in requests and as reference; also sent to the provider.deployment: Azure deployment name (only needed fortype: "azure").
model_info fields:
auto_enrich_from_model_info_endpoint: Iftrue(default), missing metadata is fetched from<endpoint>/model/info(as it is available in litellm). Set tofalseto require manual values.max_output_tokens: Maximum number of tokens the model can generate in a response.max_input_tokens: Maximum number of tokens accepted as input.display_name: Optional human-readable name shown in the UI.idstays the technical identifier used in requests and saved assistants; withoutdisplay_namethe UI showsid.description: A human-readable description of the model, shown in the model picker.short_description: One-line summary of what the model is best suited for, shown in the model picker.knowledge_cut_off: Optional ISO date string describing the model's latest training data cutoff.input_cost_per_token/output_cost_per_token: Optional pricing hints per token.supports_reasoning: Whether the model supports reasoning. Only these models receive the requestedreasoning_effort. For matching the provider exactly,supported_reasoning_effortsacceptsnone,minimal,low,medium,highandmax(some providers, e.g. privatemode.ai GLM models, expose amaxlevel); requests are clamped to the nearest supported effort.supports_vision: Whether the model can consume image input. Chat requests carrying image parts are rejected fail-closed for models without it (see the AG-UI chat contract).creativity_{low,medium,high}_temperature: Map abstract creativity levels to specifictemperaturevalues (0.0 - 1.0 or higher depending on model). Defaults are low=0.0, medium=0.5, high=1.0.
Replace the placeholder values with your actual model configuration.