Skip to content

PhoenixKit 1.7.155: Modules can find providers by what they do

PhoenixKit 1.7.155 changes nothing on a running site. It gives modules a way to list integration providers by what they can do, so the AI module can build its provider list from the registry.

Providers.with_capability/1 returns every built-in and module provider that declares a capability, such as :ai_completions. Providers.base_url/1 returns a provider’s API base address; OpenAI, OpenRouter, Mistral and DeepSeek now declare one. A provider added later then shows up in such lists without code changes elsewhere.

Full release notes: PhoenixKit 1.7.155

1.7.155 · 15 June 2026

Makes the integration provider registry capability-discoverable, so consumers (e.g. phoenix_kit_ai) can build provider lists dynamically instead of hardcoding them.

Added

  • PhoenixKit.Integrations.Providers.with_capability/1 — returns all providers (built-in + external-module) that declare a given capability, in all/0 order. An AI module can render its provider picker from with_capability(:ai_completions) so a newly-registered chat provider surfaces automatically, with no hardcoded list.
  • PhoenixKit.Integrations.Providers.base_url/1 — returns a provider’s primary REST API base URL (or nil). The :ai_completions providers (OpenAI, OpenRouter, Mistral, DeepSeek) now declare a :base_url, letting consumers derive a default endpoint base from the registry.

Changed

  • @type provider now documents the optional :base_url, :validation, and :instructions keys that real provider maps already carry (typespec accuracy only — no runtime change).

Added

  • OpenAI integration provider (PhoenixKit.Integrations.Providers). A new built-in api_key provider for OpenAI, alongside OpenRouter / Mistral / DeepSeek / ElevenLabs. It appears automatically in the admin Integrations UI — no migration or host changes needed. Connect with a single API key from platform.openai.com → API Keys; Test Connection validates it against GET https://api.openai.com/v1/models using standard Authorization: Bearer, so the generic authenticated_request/4 helper works for consumers too. Declared capabilities cover OpenAI’s range: :ai_completions, :ai_embeddings, :image_generation, :text_to_speech, :speech_to_text.

PhoenixKit 1.7.155. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.