mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
google-vertex now lists the Claude models models.dev catalogs on Vertex's Anthropic Messages API. A thin wrapper reuses the Anthropic Messages implementation: it rewrites /v1/messages to the per-model streamRawPredict and rawPredict endpoints, moves the model into the URL, adds anthropic_version, and authenticates with an Application Default Credentials access token. google-auth-library becomes a direct dependency (already in the tree through @google/genai) and is stubbed for browser bundles.
11 lines
743 B
JavaScript
11 lines
743 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.
|
|
export const MINIMUM_PI_VERSION = "1.4.1";
|