Omni.Providers.NearAI (Omni v1.5.2)

Copy Markdown View Source

Provider for NEAR AI Cloud, including TEE-backed inference models, using the Omni.Dialects.OpenAICompletions dialect.

Reads the API key from the NEARAI_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.NearAI,
  api_key: {:system, "MY_NEARAI_KEY"}

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

Compatibility

NEAR AI Cloud exposes an OpenAI-compatible API at https://cloud-api.near.ai/v1. Omni stores provider :base_url values without the dialect path prefix, so the configured service root is https://cloud-api.near.ai.