refactor(open-sse): D1a/D1b — URL quirks → schema urlSuffix + clean debug logs

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>
This commit is contained in:
decolua
2026-06-13 22:00:57 +07:00
parent 72ce515709
commit ad2a3e5de3
7 changed files with 21 additions and 28 deletions

View File

@@ -6,6 +6,7 @@ export default {
transport: {
baseUrl: KIMI_CODING_BASE_URL,
format: "claude",
urlSuffix: "?beta=true",
headers: { ...CLAUDE_API_HEADERS },
clientId: "17e5f671-d194-4dfb-9706-5516cb48c098",
tokenUrl: "https://auth.kimi.com/api/oauth/token",