Skip to content

Commit 4632b26

Browse files
committed
test(router): restore openai-chat adapters on unrelated warning fixtures
Maintainer review: moving the pinned fixture from anthropic to google accidentally rewrote the alibaba/ollama/custom cases to adapter "google"; only the pinned-provider fixture needed to change.
1 parent 2c8f6b4 commit 4632b26

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

‎tests/router-discarded-baseurl-warning.test.ts‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ const ALIBABA_INTL_BASE_URL = "https://token-plan.ap-southeast-1.maas.aliyuncs.c
155155

156156
test("alibaba-token-plan is pinned to Beijing and warns about a saved international URL", () => {
157157
const config = configFor("alibaba-token-plan", {
158-
adapter: "google",
158+
adapter: "openai-chat",
159159
baseUrl: ALIBABA_INTL_BASE_URL,
160160
});
161161
const warnings = routeCapturingWarnings(config, "alibaba-token-plan/qwen3.8-max");
@@ -176,7 +176,7 @@ test("alibaba-token-plan is pinned to Beijing and warns about a saved internatio
176176

177177
test("alibaba-token-plan-intl honors its configured international endpoint silently", () => {
178178
const config = configFor("alibaba-token-plan-intl", {
179-
adapter: "google",
179+
adapter: "openai-chat",
180180
baseUrl: ALIBABA_INTL_BASE_URL,
181181
});
182182

@@ -187,7 +187,7 @@ test("alibaba-token-plan-intl honors its configured international endpoint silen
187187

188188
test("alibaba-token-plan-intl honors its pay-as-you-go choice too", () => {
189189
const payg = "https://dashscope-intl.aliyuncs.com/compatible-mode/v1";
190-
const config = configFor("alibaba-token-plan-intl", { adapter: "google", baseUrl: payg });
190+
const config = configFor("alibaba-token-plan-intl", { adapter: "openai-chat", baseUrl: payg });
191191

192192
expect(routeCapturingWarnings(config, "alibaba-token-plan-intl/qwen3.7-max")).toEqual([]);
193193
expect(routeModel(config, "alibaba-token-plan-intl/qwen3.7-max").provider.baseUrl).toBe(payg);
@@ -197,7 +197,7 @@ for (const { label, id, adapter, baseUrl } of [
197197
{
198198
label: "a provider that opts into baseUrl override",
199199
id: "ollama",
200-
adapter: "google",
200+
adapter: "openai-chat",
201201
baseUrl: "http://ollama.lan:3210/v1",
202202
},
203203
{
@@ -209,7 +209,7 @@ for (const { label, id, adapter, baseUrl } of [
209209
{
210210
label: "a provider absent from the registry",
211211
id: "my-custom-provider",
212-
adapter: "google",
212+
adapter: "openai-chat",
213213
baseUrl: "https://custom.example.test/v1",
214214
},
215215
] as const) {
@@ -221,3 +221,4 @@ for (const { label, id, adapter, baseUrl } of [
221221
expect(routeModel(config, `${id}/model`).provider.baseUrl).toBe(baseUrl);
222222
});
223223
}
224+

0 commit comments

Comments
 (0)