singularity-forge/packages/pi-ai
vp275 03c48efbad fix: strip variant suffix from model ID for OAuth Anthropic API calls
Model variants like `claude-opus-4-6[1m]` use bracket suffixes to
differentiate context window configurations internally, but the
Anthropic API only accepts base model IDs (e.g. `claude-opus-4-6`).

Sending the full variant ID via OAuth (Claude Max/Pro) causes a 404:
  {"type":"not_found_error","message":"model: claude-opus-4-6[1m]"}

Strip any `[...]` suffix from model.id for OAuth requests only.
API key auth is left unchanged since the behavior there is unverified.
2026-03-14 16:36:45 +05:30
..
src fix: strip variant suffix from model ID for OAuth Anthropic API calls 2026-03-14 16:36:45 +05:30
bedrock-provider.d.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
bedrock-provider.js feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
package.json feat: native Rust streaming JSON parser (#266) 2026-03-13 16:21:58 -06:00
tsconfig.json feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00