Omni.Providers.Moonshot (Omni v1.5.2)

Copy Markdown View Source

Provider for the Moonshot AI (Kimi) API, using the Omni.Dialects.OpenAICompletions dialect.

Reads the API key from the MOONSHOT_API_KEY environment variable — no further configuration is needed if the variable is set.

Configuration

Override the default API key or base URL via application config:

config :omni, Omni.Providers.Moonshot,
  api_key: {:system, "MY_MOONSHOT_KEY"}

Any key from the provider's config/0 can be overridden: :api_key, :base_url. See Omni.Provider for details.

Reasoning

The :thinking option is supported. Moonshot exposes no effort granularity — all positive levels (:low through :max) enable reasoning equally.