pi-mono/scripts/model-catalog-minimum-version.mjs
Armin Ronacher 024abf6dda fix(ai): route Bedrock models Converse does not serve through Bedrock Mantle
Bedrock serves OpenAI GPT, Grok, and Gemma 4 models only on Mantle, its OpenAI-compatible endpoint; Converse rejects them as invalid model identifiers. models.dev v2 lists each model's APIs, so the catalog now maps models without a Converse API to the Responses API at the Mantle URL, and amazon-bedrock dispatches them to a thin wrapper around the OpenAI Responses implementation that fills in the region and authenticates with a Bedrock API key. IAM and profile credentials are not supported for Mantle models yet.
2026-10-28 11:06:15 +01:00

12 lines
859 B
JavaScript

// The oldest pi version that receives model catalogs published from this checkout.
// pi.dev keeps one catalog per minimum version; clients older than this keep the
// last catalog published under the previous minimum and stop receiving updates.
//
// Bump this only when generated model metadata requires behavior unavailable in
// older pi clients, in the same commit as the change that requires it.
// 1.2.1: kimi-coding models use openai-completions at /coding/v1; older clients only
// implement anthropic-messages for kimi-coding and ignore a model's api.
// 1.4.1: google-vertex serves Claude through anthropic-messages; older clients only
// implement Google's Vertex API for google-vertex. amazon-bedrock serves Mantle-only
// models through openai-responses; older clients only implement Converse for it.
export const MINIMUM_PI_VERSION = "1.4.1";