buildUrl: switch provider-name → config-driven. ?beta=true thành
urlSuffix per registry (claude/glm/kimi/minimax/minimax-cn/kimi-coding);
gemini path dùng format==="gemini"; accountId substitution giữ generic.
Xóa console.log('[DEBUG]') trong refreshCline.
Golden url-header 142 pass (byte-for-byte URL).
Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
835 B
JavaScript
23 lines
835 B
JavaScript
import { CLAUDE_CLI_SPOOF_HEADERS } from "../shared.js";
|
|
|
|
export default {
|
|
id: "claude",
|
|
alias: "cc",
|
|
transport: {
|
|
baseUrl: "https://api.anthropic.com/v1/messages",
|
|
format: "claude",
|
|
urlSuffix: "?beta=true",
|
|
headers: { ...CLAUDE_CLI_SPOOF_HEADERS },
|
|
clientId: "9d1c250a-e61b-44d9-88ed-5944d1962f5e",
|
|
tokenUrl: "https://api.anthropic.com/v1/oauth/token"
|
|
},
|
|
models: [
|
|
{ id: "claude-opus-4-8", name: "Claude Opus 4.8" },
|
|
{ id: "claude-opus-4-7", name: "Claude Opus 4.7" },
|
|
{ id: "claude-opus-4-6", name: "Claude Opus 4.6" },
|
|
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6" },
|
|
{ id: "claude-opus-4-5-20251101", name: "Claude 4.5 Opus" },
|
|
{ id: "claude-sonnet-4-5-20250929", name: "Claude 4.5 Sonnet" },
|
|
{ id: "claude-haiku-4-5-20251001", name: "Claude 4.5 Haiku" }
|
|
]
|
|
};
|