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, inall/0order. An AI module can render its provider picker fromwith_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 (ornil). The:ai_completionsproviders (OpenAI, OpenRouter, Mistral, DeepSeek) now declare a:base_url, letting consumers derive a default endpoint base from the registry.
Changed
@type providernow documents the optional:base_url,:validation, and:instructionskeys that real provider maps already carry (typespec accuracy only — no runtime change).
Added
- OpenAI integration provider (
PhoenixKit.Integrations.Providers). A new built-inapi_keyprovider 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 againstGET https://api.openai.com/v1/modelsusing standardAuthorization: Bearer, so the genericauthenticated_request/4helper 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.