mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-06 23:44:36 +00:00
pi.dev serves each published catalog to released pi >= MINIMUM_PI_VERSION. Compile the latest release's pi-ai against its built-in models overlaid by the new catalog, so a catalog it cannot handle (e.g. kimi-coding moving to openai-completions) fails in CI instead of breaking released clients. MINIMUM_PI_VERSION moves to scripts/model-catalog-minimum-version.mjs.
9 lines
606 B
JavaScript
9 lines
606 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.
|
|
export const MINIMUM_PI_VERSION = "1.2.1";
|