AI 0.26.0: A Tasks page with limits, a task guard and costs in dollars
AI 0.26.0 adds a Tasks page that shows every AI task the installed modules use, checks whether their models can do the job, and lets an admin limit and watch each task. Costs and caps move to plain dollar amounts.
A Tasks page
The new Tasks tab under AI lists each task a module declares: what it is for, what its model has to be able to do (vision, file input, image output, tools, JSON schema) and whether the endpoints in use fit. Refresh catalogues reads the providers’ model lists again. Model recommendations rank the catalogue’s models for a task by what they can do, then by the estimated price of a call, and list the models that already worked in it over the last 30 days.
The task guard
Each task can have limits on requests, tokens and money, per day and per month, for the task as a whole and for each user, with a Warn at, % threshold and personal exceptions. The page shows what was used today and this month and who is at a limit, and a reached limit can be forgiven. Who is told picks the people notified, and Only verified models refuses a call when nobody has confirmed that the model can do what the task needs.
The guard checks the model’s capabilities before a call reaches the provider. A task can have its model flag requests that are off its purpose. From a flag, an admin can block a person from the task and later lift the block. A private task’s flag reasons are hidden from those without the right. Changing anything here needs the new Manage the AI task guard permission; without it the page shows the values only.
Pricing and calls
Costs, prices and spend caps are now decimal dollars. For a model whose catalogue has no price, the endpoint form takes a Price entered by hand per 1M tokens, so its calls are counted. The Playground shows an estimated cost where one is known.
For developers: chat calls can use tools across several rounds, calls can be held back by concurrency limits and retried with backoff, a call can pick its own model, and the request log can be written asynchronously. Provider errors now return a safe classification instead of the provider’s response body.
Upgrading
AI 0.26 needs PhoenixKit 2.64: upgrade both together, then run mix phoenix_kit.update. Core’s V223 converts the request journal, and the module’s own migrations (now V1 to V4) add the capability, task, limit, event and block tables and convert spend caps, task money limits and manual prices from the old millionths into dollars. Code that passes amounts must now use dollar strings or Decimal values instead of scaled integers. Old numeric settings that cannot be read safely refuse calls until they are migrated.
Full release notes: AI 0.26.0
0.26.0 · 24 October 2026
Requires PhoenixKit ~> 2.64. Upgrade both packages together, then run
mix phoenix_kit.update: core V223 converts the request journal and this module’s
V4 converts spend caps, task money limits and manual prices from legacy
millionths into dollar strings. Custom callers must pass dollar strings or
Decimal amounts instead of scaled integers.
Added
- AI tasks declare required model capabilities, with model recommendations, endpoint declarations and a cached capability catalogue.
- Task guard checks capabilities before calling a provider, supports verified-only
operation, private off-purpose flags, blocks, watchers and activity notifications.
ai.managecontrols guard changes and sensitive reasons. - Task and per-user limits track requests, tokens and dollars across calendar periods, with warnings, overrides and explicit forgiveness. A task may disable its per-user limits.
- Chat tool calling preserves tool calls and tool results across rounds, including JSON/schema response modes, and records the calls in the usage journal.
- Concurrency limits with queued admission, retry backoff, per-call model selection, endpoint/credential lookup caches and optional asynchronous request logging.
- Manual per-million-token pricing for models whose catalogue has no price.
Changed
- Costs, prices and spend caps use decimal dollars throughout. Usage costs retain 18 decimal places; ambiguous legacy numeric settings fail closed until migrated.
- Provider models, headers and capability rules follow core’s integration registry. Endpoint forms follow the selected provider and connection, and the Playground shows estimated cost where available.
- Journal writes suppress database query logging so request content is not logged.
Fixed
- Provider errors expose safe classifications instead of response bodies or credentials.
- Endpoint ordering uses the name as a deterministic tie-breaker; connection-change form parameters preserve intent and invalidate stale discovery state.
- Guard identity checks, native provider model filters, alert routing and stale permission checks were corrected during the merged PR reviews.
- The core dependency floor now requires V223. LiveView tests authenticate real fixture sessions, exercising current session rights, and the Anthropic header fixture no longer relies on overriding a built-in through a module contribution.
AI 0.26.0. Install or update: {:phoenix_kit_ai, "~> 0.26"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.