AI 0.2.0: Mistral and DeepSeek endpoints, keys from Integrations
AI 0.2.0 adds Mistral and DeepSeek as providers next to OpenRouter. Each endpoint now points at one specific PhoenixKit integration for its API key, and the endpoints list warns when that integration has a problem.
More providers
An endpoint can use OpenRouter, Mistral or DeepSeek. All three are called the same way, through their OpenAI-compatible chat address, and the model list loads from any provider’s /models address. Switching provider on the form clears the chosen model and loads the models from the new provider’s address, so a model id from the old provider is not kept by mistake.
One integration per endpoint
The endpoint form picks a single integration connection, stored on the endpoint by its id, instead of guessing one from the provider name. The endpoints list shows the integration’s name and a masked key on each card, with badges such as Integration missing, Integration error, Not connected and No integration when something needs fixing.
Endpoints that still have an OpenRouter API key typed into the endpoint itself are moved over when the app starts. Endpoints sharing a key get one new integration, and each move is written to the activity log. This runs again safely on every start and never stops the app from booting.
Reasoning and safety
For models with Enable Thinking turned on, the request history now keeps the model’s reasoning and shows it, collapsed, in the request details. A custom base URL can no longer point at localhost, private network ranges or .local names. Set allow_internal_endpoint_urls: true in the :phoenix_kit_ai config if you run a model on your own network, such as Ollama.
Upgrading
No migration of its own: the integration link comes from PhoenixKit core’s V107 migration. Run mix phoenix_kit.update, then open the endpoints list and fix any endpoint that shows a warning badge. If you call a model on an internal address, set allow_internal_endpoint_urls before updating.
Full release notes: AI 0.2.0
0.2.0 · 2 May 2026
Added
- Multi-provider support: Mistral and DeepSeek endpoints alongside OpenRouter
- Reasoning chain-of-thought capture (reasoning_effort, reasoning_max_tokens) in request history
- Strict-UUID Integrations API — endpoints pin to a specific integration row via
integration_uuid - Legacy
api_keyauto-migration with idempotency guards and:persistent_termrate-limiting - Integration-health badges on endpoints list (missing, error, not connected)
- Integration name + masked API key display on endpoint cards
- SSRF guard on
base_url(blocks localhost, RFC1918, link-local, IPv6 loopback/ULA) endpoint.masked_api_key/1head+tail mask (first 8 + last 4 chars)- Provider-switch resets model selector to avoid stale cross-provider model IDs
Changed
- Move LiveView data loading from
mount/3tohandle_params/3(avoids double-fetch) - Endpoint form wires through changeset on integration deselect
OpenRouterClientlazy-promotes legacy provider strings tointegration_uuidon read- Model fetcher generalized to any OpenAI-compatible
/modelsendpoint - DRY credential resolution across completion, validation, and model fetch
Fixed
- Provider-switch URL reuse bug — switching provider now fetches models from the new provider’s base URL
- Duplicated
mask_api_key/1removed from Endpoints LiveView (consolidated into schema helper) migrate_legacy/0now surfaces inner:errorinstead of masking it as{:ok, _}- Snapshot-based UUID lookups in migration prevent N+1 queries
- Compile warnings resolved against phoenix_kit 1.7.x
AI 0.2.0. Install or update: {:phoenix_kit_ai, "~> 0.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.