LLM Providers

Specifies configurations related to Large Language Model providers, detailing which models to use and their respective settings.

  • llms: Defines the configuration for different LLM providers as a named map of LLM definitions where each can have the following properties.
    • provider: Type of provider, e.g., openai.
      • Early Access in 0.9.17 The OpenAI “Responses” protocol is available for openai, ollama, and azure_foundry via the provider variants openai:responses, ollama:responses, and azure_foundry:responses. Use a variant when you want the Responses protocol with that endpoint; the plain providers (openai, ollama, azure_foundry) keep using the “Chat Completions” protocol.
    • New in 0.9.18 settings: Optional map of provider-level settings. Settings configured here are inherited by all models under this provider; individual models can override any key in their own settings: block. Supported settings: think_map, think, temperature, and exclude_past_reasoning.
    • models: List of models supported by the provider, where each has the following properties:
      • name: Unique name for the model, which can be used with the model property of Session Settings.
      • model: The name of the model as defined by the provider
      • settings: Optional map of settings that are applied per model when in use (inheriting or overriding provider-level settings):
        • New in 0.9.18 think_map: Configures custom mapping of Enkaidu’s canonical reasoning levels (none, low, medium, high, max) to model-specific wire strings, or disables levels by mapping them to ~ or null. If a user requests a disabled or unsupported level (for example via /think set), Enkaidu issues a warning and falls back to the next lower supported level.
        • Updated in 0.9.15 exclude_past_reasoning: Set to true, or to a positive number of turns, to ask Enkaidu not to send reasoning content in responses from past turns when prompting the next turn if using this specific model. With a number N, only reasoning from turns older than the last N turns is excluded, preserving recent reasoning (a turn = one user input through the next user input). Some models (e.g. gemma4) recommend enabling this.
        • think: Set to one of default|none|low|medium|high|max. Unspecified means default.
        • New in 0.9.13 temperature: Set to a number greater than 0 and less than or equal to 2. Omitting it means default.
    • env: Environmental variables specific to the provider, essential for authentication and connection.
  • Example: Chat Completions (Standard)

    This example shows how to configure a standard provider using the default Chat Completions protocol.

    llms:
      my-ollama:
        provider: ollama
        models:
        - name: glimmer
          model: muse-glimmer:30b-mxfp8
          settings:
            temperature: 1
            think: low
            # true excludes all past reasoning, or set a 
            # positive number of turns (e.g. 3) to preserve 
            # reasoning after the last N turns
            exclude_past_reasoning: false
  • Example: Responses Protocol (Early Access)

    This example shows how to use the new “Responses” protocol by using a specific provider variant.

    llms:
      my-ollama-responses:
        provider: ollama:responses
        models:
        - name: glimmer-responses
          model: muse-glimmer:30b-mxfp8

Example: Provider Settings & think_map Inheritance

New in 0.9.18

You can define provider-level settings: that all models inherit, while allowing individual models to override or disable specific settings such as think_map:

llms:
  openai:
    provider: openai
    settings:
      think: medium
      think_map:
        max: xhigh
    models:
      - name: o3-mini
        model: o3-mini
        settings:
          think_map:
            none: ~
            max: ~

In this example:

  • All models under openai inherit think: medium and map canonical max thinking to xhigh.
  • The o3-mini model overrides think_map to mark none and max as unsupported (~). Requesting either level triggers a warning and falls back to a supported level.