AI 0.10.0: The translation dialog picks the endpoint you used last
AI 0.10.0 makes the AI translation dialog start on the endpoint you actually used last, and fixes how the endpoint form keeps voice settings.
A better default endpoint
The translation dialog, which the Catalogue, Projects and Publishing forms share, now preselects its endpoint in this order: the ai_translation_endpoint_uuid setting if an admin set one; the endpoint of the most recent successful chat request, if it is still enabled; the first enabled chat endpoint that is not a reasoning model, since reasoning models break the translation answer format; and finally the first enabled endpoint. The lookup is one query when the dialog opens, only while AI is on. If the request table is missing, the dialog falls back to the next step instead of crashing.
Voice settings on the endpoint form
The stored default voice is cleared when an endpoint’s integration or provider changes, because voice names belong to one provider: a Mistral voice is never sent to OpenRouter. A Mistral integration is recognised by its name prefix, so any mistral-prefixed integration gets the voice field. Saving the form now merges the submitted provider settings into the endpoint’s existing ones instead of replacing them.
Upgrading
No migration. Update the dependency. The PhoenixKit requirement stays at 1.7.155. The release also moves its lock to PhoenixKit 1.7.162, Leaf 0.3.0 (which brings in mdex) and Phoenix LiveView 1.2.3.
Full release notes: AI 0.10.0
0.10.0 · 18 June 2026
Changed
- The translation modal pre-selects the endpoint you actually used last.
Translations.default_endpoint_uuid/0now resolves in order: (1) theai_translation_endpoint_uuidsetting (admin override), (2) the endpoint of the most recent successful chat request in the AI history (phoenix_kit_ai_requests) whose endpoint is still enabled, (3) the first enabled non-reasoning chat endpoint (reasoning/“thinking” models break the---FIELD---structured-response parser), then (4) the first enabled endpoint. Because the sharedAITranslate.FormGlueconsumes this, the catalogue / projects / publishing translation modals all benefit. The history lookup is a single indexedORDER BY inserted_at DESC LIMIT 1query at mount, gated on AI being enabled (PR #11). - Dependency refresh.
phoenix_kit1.7.155 → 1.7.162,leaf0.2.24 → 0.3.0 (pulls inmdex/mdex_native),phoenix_live_view1.2.1 → 1.2.3,finch0.22 → 0.23,sourceror1.12.0 → 1.12.2. Thephoenix_kit ~> 1.7.155requirement is unchanged. Dropped the orphanedearmarklock entry and flattened an internalTranslationshelper to keepmix precommit(credo --strict,deps.unlock --check-unused) green.
Fixed
default_endpoint_uuid/0now actually fails open on a missing AI-requests table. The new history lookup was wrapped insafe_ai/2, which only rescuesUndefinedFunctionError/FunctionClauseError/ArgumentError— so a missing or pre-migrationphoenix_kit_ai_requeststable (which raisesPostgrex.Error) would crash the translation modal at mount instead of degrading tonil. The query now carries its ownrescue, mirroringjob_in_flight?, so any query error falls through to the next resolution step.- AI endpoint form: TTS voice state bugs. The Mistral voice field is matched by provider prefix (a
mistral-prefixed integration key still maps tovoice_id), and the stored default voice is cleared when the integration/provider changes — voice slugs are provider-specific, so a Mistral voice must never be sent to OpenRouter on the nextspeak/3. Submittedprovider_settingsnow merge onto the endpoint’s existing settings instead of replacing them.
AI 0.10.0. Install or update: {:phoenix_kit_ai, "~> 0.10"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.