singularity-forge/packages
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
..
native feat: native Rust output truncation module (#268) 2026-03-13 16:48:49 -06:00
pi-agent-core feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
pi-ai fix: strip variant suffix from model ID for OAuth Anthropic API calls 2026-03-14 16:36:45 +05:30
pi-coding-agent fix: display ⌥ instead of Alt for keybindings on macOS 2026-03-13 22:40:39 -03:00
pi-tui fix: truncate oversized TUI lines instead of crashing (#287) 2026-03-13 16:50:58 -06:00