LongCat (Meituan) ships an Anthropic-compatible endpoint at https://api.longcat.chat/anthropic that authenticates via `Authorization: Bearer $KEY` instead of Anthropic's native `x-api-key` header. Without this change, pi sends x-api-key and LongCat replies with 401 invalid_api_key / missing_api_key. Same topology as the existing alibaba-coding-plan / minimax / minimax-cn entries (#3783). - Add "longcat" to usesAnthropicBearerAuth() so createClient routes the key through authToken. - Add "longcat": "LONGCAT_API_KEY" to env-api-keys.ts envMap so getEnvApiKey() can resolve it when options.apiKey is absent. - Add "longcat" to KnownProvider so the === literal check type-checks. - Extend anthropic-auth.test.ts to assert usesAnthropicBearerAuth returns true for longcat. |
||
|---|---|---|
| .. | ||
| daemon | ||
| mcp-server | ||
| native | ||
| pi-agent-core | ||
| pi-ai | ||
| pi-coding-agent | ||
| pi-tui | ||
| rpc-client | ||