Skip to content

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.

A PhoenixKit catalogue item form with the language tabs English, German, French, Spanish and Estonian and the AI Translate button at the end of the same row A PhoenixKit catalogue item form with the language tabs English, German, French, Spanish and Estonian and the AI Translate button at the end of the same row

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-Title or HTTP-Referer header made every completion fail. It is encoded properly now.
  • Anthropic’s model list shows retired models again.
  • embed_many/3 with 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_bedrock endpoint whose model is not openai.* (an eu.anthropic.* / global.anthropic.* inference profile, a model or profile ARN) goes to POST <base URL host>/model/<model id>/converse with 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 and tool_choice, sampling by the Anthropic rules for a Claude model, stop reasons, usage. The openai.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/3 takes role: :query | :document and applies the model family’s convention (input_type, a prefix or a query instruction) from PhoenixKitAI.EmbeddingConventions, overridable per endpoint in provider_settings["embedding"].
  • embed_many/3 splits 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’s provider:), and encoding_format, input_type and user passed 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_kit requirement is >= 3.5.0 and < 4.0.0. The fallbacks for older cores are gone (Web.Access always checks the session through core’s SessionRef).
  • 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-Referer made every completion fail with invalid_header_value; it is percent-encoded now. Anthropic’s model list asks for one lifecycle[] per stage, so retired models are listed again.
  • embed_many/3 with a caller cache key answered every part with the first part’s vectors; and one cache: [key: …] reused with two dimensions: 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_format instead of a shorter vector, and normalize: true no 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.