Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

For releases before 0.3.6, see the [GitHub releases](https://github.com/hawkff/pi-cliproxyapi-native/releases).

## [0.3.9] - 2026-11-11

- Antigravity's `gemini-4-carbon-high` and `gemini-3.8-flash-high` register with `google/gemini-4-carbon` and `google/gemini-3.8-flash` metadata, as `gemini-4-argon-high` does with `google/gemini-4-argon`. Before, discovery skipped both IDs. Pi 1.5.2 doesn't bundle Gemini 4 Carbon metadata. Until a Pi release does, `gemini-4-carbon-high` needs the metadata from Pi's pi.dev catalog, which Pi downloads only while Google has credentials in Pi, such as a stored login or `GEMINI_API_KEY`.
- The extension targets Pi 1.5.2 and CLIProxyAPI 8.0.67.

## [0.3.8] - 2026-11-10

- Model discovery skips an ID it cannot use and keeps the rest of the catalog. CLIProxyAPI accepts any text as a model alias, and one ID with a space, a non-ASCII character, or more than 256 characters made discovery fail. A catalog with no usable ID still fails, so it cannot replace a working model list.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pi-cliproxyapi-native",
"version": "0.3.8",
"version": "0.3.9",
"description": "CLIProxyAPI chat discovery, image generation and editing, and video generation with Pi's native adapters",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 2 additions & 0 deletions src/catalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ const metadataFallbacks = new Map([
["claude-opus-5-5-high", "anthropic/claude-opus-5-5"],
["claude-sonnet-5-5-high", "anthropic/claude-sonnet-5-5"],
["gemini-4-argon-high", "google/gemini-4-argon"],
["gemini-4-carbon-high", "google/gemini-4-carbon"],
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
["gemini-3.8-flash-high", "google/gemini-3.8-flash"],
]);

export function mapCatalog(value: unknown, config: Config, known: readonly Model<Api>[]) {
Expand Down
2 changes: 1 addition & 1 deletion src/claude-quota.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export async function fetchClaudeQuota(
Authorization: "Bearer $TOKEN$",
"Content-Type": "application/json",
"anthropic-beta": "oauth-2025-04-20",
// CLIProxyAPI 8.0.64 presents this Claude Code version for OAuth accounts.
// CLIProxyAPI 8.0.67 presents this Claude Code version for OAuth accounts.
"User-Agent": "claude-cli/2.1.321 (external, cli)",
},
});
Expand Down
10 changes: 9 additions & 1 deletion test/provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,19 @@ test("auth prefixes keep separate entries and reuse metadata without guessing cu
});

test("Antigravity high IDs use exact metadata fallbacks without changing advertised IDs", () => {
const sources = builtinCatalog();
const bundled = builtinCatalog();
const argon = bundled.find((model) => model.provider === "google" && model.id === "gemini-4-argon");
assert.ok(argon);
// Pi 1.5.2 gets Gemini 4 Carbon metadata only from its pi.dev catalog.
const sources = metadataCatalog((provider) =>
provider === "google" ? [{ ...argon, id: "gemini-4-carbon", name: "Gemini 4 Carbon" }] : undefined,
);
for (const [provider, canonical] of [
["anthropic", "claude-opus-5-5"],
["anthropic", "claude-sonnet-5-5"],
["google", "gemini-4-argon"],
["google", "gemini-4-carbon"],
["google", "gemini-3.8-flash"],
]) {
const reference = sources.find((model) => model.provider === provider && model.id === canonical);
assert.ok(reference);
Expand Down
Loading