AI 0.6.0: Text-to-speech endpoints get their own model type
AI 0.6.0 makes text-to-speech endpoints easier to set up. The endpoint form gets a Model Type choice, and a text-to-speech endpoint can store the voice to use when none is given.
Chat or text-to-speech
The new Model Type field offers Chat / Completion and Text-to-Speech. It filters the model list loaded from the provider. Providers do not mark speech models, so a model counts as text-to-speech when its id or name contains tts, as in voxtral-mini-tts-2603. Those models no longer show in the chat list. Changing the type clears the chosen model and reloads the list. An existing endpoint opens on the type that matches its saved model.
The chat list now loads chat models only. Earlier the form loaded every model the provider offered.
A default voice
For text-to-speech endpoints the form shows a Default Voice text field. It takes the provider’s own voice id. PhoenixKitAI.speak/3 uses it whenever the caller passes no voice of its own.
Upgrading
No migration: the voice is kept in the endpoint’s existing provider settings. Update the dependency.
Full release notes: AI 0.6.0
0.6.0 · 10 June 2026
Added
- Model-type selector on the endpoint form (Chat / Text-to-Speech). Picking a type filters the fetched model list so TTS models no longer sit undifferentiated in the chat dropdown:
- New
:ttsmodel type inPhoenixKitAI.OpenRouterClient(fetch_models_by_type/3,model_matches_type?/2). Since neither Mistral nor OpenRouter expose an audio modality flag, TTS models are matched byttsin the model id/name (e.g.voxtral-mini-tts-2603); the:text/Chat filter now excludes them so the chat picker stays clean. Speech-to-text/transcription models are intentionally not matched (no dedicated type yet). - The form re-runs its existing fetch with the selected
model_type; editing an endpoint infers the type from its saved model id (TTS endpoints open on the TTS filter).
- New
- Per-endpoint default TTS voice. A “Default Voice” field (shown only for the TTS type) is stored in
provider_settings["voice"];PhoenixKitAI.speak/3falls back to it when the caller passes no:voice/:voice_id. No migration —provider_settingsis already a map.
AI 0.6.0. Install or update: {:phoenix_kit_ai, "~> 0.6"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.