AI 0.30.0: Claude on Amazon Bedrock, better embeddings and a tidier translate button
AI 0.30.0 lets a PhoenixKit endpoint on Amazon Bedrock talk to Claude and the other Bedrock models, gives developers better tools for embeddings and search, and moves the AI Translate button into the language tab row.
Claude and other models on Amazon Bedrock
Until now an Amazon Bedrock endpoint reached only the models on Bedrock’s OpenAI-compatible address. A chat call whose model is not an openai.* one, such as a Claude inference profile (eu.anthropic.…, global.anthropic.…) or a model ARN, now goes to Bedrock’s Converse API with the same Bedrock API key. It uses the same limits, retries and error messages as any other chat call, and supports system prompts, tool calls, images sent as data: URLs and stop reasons. The openai.gpt-oss-* models stay where they were.
Bedrock’s model list does not show these models, so the endpoint form now keeps the manual entry under the fetched list too: Or enter a model ID the list does not show, then Set Model.
Converse reports no cost for a call. Enter a price by hand on a Bedrock endpoint before you rely on a money limit.
Embeddings for search
For developers building search: embed/3 takes role: :query or role: :document and applies the convention each model family expects, which an endpoint can override. embed_many/3 splits a long list into the batches a model accepts and returns the vectors in order, with usage and cost added up. translate_query/3 translates a search query into the language of the index in one cached call, and gives the query back unchanged if anything fails. OpenRouter embedding models now come from OpenRouter’s own list, kept for an hour, and OpenRouter provider preferences can be set for chat and embeddings.
The translate button moves into the tab row
On multilingual forms, AI Translate now sits at the end of the language tabs instead of taking a row of its own under them. The progress bar shows under the tabs only while a translation runs.
AI Translate now sits in the language tab row.
Fixes
- A project title or site URL with non-ASCII letters (Cyrillic, accents) in the
X-TitleorHTTP-Refererheader made every completion fail. It is encoded properly now. - Anthropic’s model list shows retired models again.
embed_many/3with a cache key no longer answers every batch with the first batch’s vectors, and one cache key used with two sizes no longer returns the wrong size.- On Bedrock,
tool_choice: "none"leaves the tools out instead of offering them.
Upgrading
AI 0.30 needs PhoenixKit 3.5.0 or later. There is no migration. Update the dependency; the translate button moves on every form built with the module’s ai_multilang_tabs component (Catalogue, Projects and Publishing use it) without any change on your side.
Full release notes: AI 0.30.0
0.30.0 · 15 November 2026
Requires PhoenixKit core 3.5.0 or later. No migration.
Added
- Claude and the other Amazon Bedrock models through the Converse API. A chat call on an
amazon_bedrockendpoint whose model is notopenai.*(aneu.anthropic.*/global.anthropic.*inference profile, a model or profile ARN) goes toPOST <base URL host>/model/<model id>/conversewith the integration’s Bedrock API key, through the same limiter, retries and error vocabulary as other chat calls (PhoenixKitAI.Providers.BedrockConverse). The request and answer are translated from and into the chat-completions shape: system blocks, merged turns, tool calls and results,data:URL images, tools andtool_choice, sampling by the Anthropic rules for a Claude model, stop reasons, usage. Theopenai.gpt-oss-*models stay on the OpenAI-compatible URL. Converse reports no cost: set a manual price on a Bedrock endpoint before relying on a spend cap. - The endpoint form’s manual model-ID entry also sits under a fetched model list, for an id the list does not show.
- Embedding roles:
embed/3takesrole: :query | :documentand applies the model family’s convention (input_type, a prefix or a query instruction) fromPhoenixKitAI.EmbeddingConventions, overridable per endpoint inprovider_settings["embedding"]. embed_many/3splits a long list by the model’s batch limits, embeds the parts (optionally in parallel) and merges the vectors in order with summed usage and cost.translate_query/3: one cached chat call that translates a search query into the index’s language, returning the query unchanged on any failure.- OpenRouter provider preferences for chat and embeddings (
provider_settings["provider_preferences"], a call’sprovider:), andencoding_format,input_typeanduserpassed through on embeddings. - OpenRouter’s live embedding model list (
GET /embeddings/models, kept for an hour;embedding_models_live:/embedding_models_ttl:).
Changed
- The
phoenix_kitrequirement is>= 3.5.0 and < 4.0.0. The fallbacks for older cores are gone (Web.Accessalways checks the session through core’sSessionRef). - The AI translate button sits at the end of the language tab row instead of taking a row of its own under the tabs; the progress bar shows under the tabs only while a translation runs.
- Gemini embedding batches are capped at 100 inputs, as measured through OpenRouter.
Fixed
- A non-ASCII project title or site URL (Cyrillic, accents) in
X-Title/HTTP-Referermade every completion fail withinvalid_header_value; it is percent-encoded now. Anthropic’s model list asks for onelifecycle[]per stage, so retired models are listed again. embed_many/3with a caller cache key answered every part with the first part’s vectors; and onecache: [key: …]reused with twodimensions:returned the first size’s vector for both.- An embedding row records the dimensions actually sent, not the endpoint’s; a base64 vector holding NaN or infinity is
:invalid_response_formatinstead of a shorter vector, andnormalize: trueno longer raises after the paid call. - On Bedrock,
tool_choice: "none"leaves the tools out instead of offering them. - The endpoint form’s “Or enter a model ID the list does not show” is translated in every shipped language.
AI 0.30.0. Install or update: {:phoenix_kit_ai, "~> 0.30"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.