Skip to content

AI 0.24.1: Translations no longer cut short by stray markers

AI 0.24.1 stops broken AI translations from being saved. A model sometimes turned a field’s Markdown headings into field marker lines, or repeated a marker. The first cut the translated field short at that line; the second left marker lines inside the text.

Both now count as a parse error, and the translation job retries, as it already did for missing fields. A translated value that quotes a {{placeholder}} its source does not contain, usually the model’s note about an empty prompt slot, is rejected the same way instead of being saved with the note attached. The activity log names both new errors.

Content that has marker-like lines of its own, such as ----- Original Message ----- or --- OR ---, still translates: the answer may carry as many of them as the source does.

Full release notes: AI 0.24.1

0.24.1 · 24 September 2026

Fixed

  • Translation parsing refuses marker lines that nobody asked for (PR #31). Models sometimes turn a field’s Markdown headings into marker lines (---MINIATURE_DETAILS---, ---SIZE AND USABLE SPACE---) or repeat a requested marker. The first case used to cut the field short at that line; the second left the marker lines inside the value. Both now return {:parse_error, {:unexpected_markers, names}}. A section holding nothing but an unbound {{slot}} is still dropped silently.
  • A translated value that quotes a {{placeholder}} its source does not contain (a model’s note about an unbound prompt slot) returns {:parse_error, {:placeholder_echo, fields}} instead of being persisted with the note appended.
  • TranslateWorker retries both new errors, like missing_fields, and classifies them for the activity log.
  • Content that carries marker-shaped lines of its own (----- Original Message -----, --- OR ---) still translates. The response may contain as many such lines as the source values do. Translation.parse_response/3 takes the source values as sources:.

AI 0.24.1. Install or update: {:phoenix_kit_ai, "~> 0.24"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.