diff --git a/tests/snapshots/provider/translate-path.json b/tests/snapshots/provider/translate-path.json index 3dfce0ca56..f64cee4d49 100644 --- a/tests/snapshots/provider/translate-path.json +++ b/tests/snapshots/provider/translate-path.json @@ -772,6 +772,35 @@ "stream": "https://api.cline.bot/api/v1/chat/completions" } }, + "clinepass": { + "format": "openai", + "headers": { + "apiKey": { + "Accept": "text/event-stream", + "Authorization": "Bearer ", + "Content-Type": "application/json", + "HTTP-Referer": "https://cline.bot", + "X-Title": "Cline" + }, + "nonStream": { + "Authorization": "Bearer ", + "Content-Type": "application/json", + "HTTP-Referer": "https://cline.bot", + "X-Title": "Cline" + }, + "oauth": { + "Accept": "text/event-stream", + "Authorization": "Bearer ", + "Content-Type": "application/json", + "HTTP-Referer": "https://cline.bot", + "X-Title": "Cline" + } + }, + "url": { + "nonStream": "https://api.cline.bot/api/v1/chat/completions", + "stream": "https://api.cline.bot/api/v1/chat/completions" + } + }, "cloudflare-ai": { "format": "openai", "headers": { diff --git a/tests/unit/providers-constants-split.test.ts b/tests/unit/providers-constants-split.test.ts index eb4e425673..601d03f72e 100644 --- a/tests/unit/providers-constants-split.test.ts +++ b/tests/unit/providers-constants-split.test.ts @@ -31,12 +31,12 @@ test("barrel still exports every catalog + key helpers", () => { } }); -test("APIKEY_PROVIDERS merges the 6 family files into 158 entries (no loss / no dup)", async () => { +test("APIKEY_PROVIDERS merges the 6 family files into 159 entries (no loss / no dup)", async () => { const keys = Object.keys((P as Record).APIKEY_PROVIDERS); - assert.equal(keys.length, 158); - assert.equal(new Set(keys).size, 158, "duplicate keys after spread-merge"); + assert.equal(keys.length, 159); + assert.equal(new Set(keys).size, 159, "duplicate keys after spread-merge"); // the merged object's entry-count equals the sum of the 6 semantic family files; families are a - // strict partition (every provider in exactly one), so the sum must be exactly 158. + // strict partition (every provider in exactly one), so the sum must be exactly 159. const families: [string, string][] = [ ["gateways", "APIKEY_PROVIDERS_GATEWAYS"], ["frontier-labs", "APIKEY_PROVIDERS_FRONTIER"], @@ -56,7 +56,7 @@ test("APIKEY_PROVIDERS merges the 6 family files into 158 entries (no loss / no seen.add(k); } } - assert.equal(famTotal, 158, "families must partition all 158 providers"); + assert.equal(famTotal, 159, "families must partition all 159 providers"); }); test("AI_PROVIDERS Proxy aggregates all sections; lookups resolve", () => {