@@ -7,12 +7,12 @@ import type { OcxConfig, OcxProviderConfig } from "../src/types";
77 * asserted in tests/router-template-baseurl.test.ts; these tests cover the diagnostic that
88 * tells the user it happened, so a wrong-region URL stops surfacing as a bare 401.
99 *
10- * `anthropic ` is the pinned fixture: a fixed remote registry endpoint, no `allowBaseUrlOverride`.
10+ * `google ` is the pinned fixture: a fixed remote registry endpoint, no `allowBaseUrlOverride`.
1111 * Warnings dedupe per (provider, discarded URL, effective URL), so each test uses a distinct
1212 * discarded URL and the suite stays order-independent.
1313 */
14- const PINNED_PROVIDER = "anthropic " ;
15- const PINNED_REGISTRY_BASE_URL = "https://api.anthropic .com" ;
14+ const PINNED_PROVIDER = "google " ;
15+ const PINNED_REGISTRY_BASE_URL = "https://generativelanguage.googleapis .com" ;
1616
1717function configFor ( providerName : string , provider : OcxProviderConfig ) : OcxConfig {
1818 return {
@@ -37,8 +37,8 @@ function routeCapturingWarnings(config: OcxConfig, model: string, times = 1): st
3737
3838function routePinned ( baseUrl : unknown , times = 1 ) : string [ ] {
3939 return routeCapturingWarnings (
40- configFor ( PINNED_PROVIDER , { adapter : "anthropic " , baseUrl } as OcxProviderConfig ) ,
41- `${ PINNED_PROVIDER } /claude-sonnet-5 ` ,
40+ configFor ( PINNED_PROVIDER , { adapter : "google " , baseUrl } as OcxProviderConfig ) ,
41+ `${ PINNED_PROVIDER } /gemini-3-pro ` ,
4242 times ,
4343 ) ;
4444}
@@ -57,13 +57,13 @@ test("warns when a pinned provider discards a configured baseUrl", () => {
5757
5858test ( "routing is unchanged by the warning" , ( ) => {
5959 const config = configFor ( PINNED_PROVIDER , {
60- adapter : "anthropic " ,
60+ adapter : "google " ,
6161 baseUrl : "https://routing-unchanged.example.test/v1" ,
6262 } ) ;
6363 const originalWarn = console . warn ;
6464 console . warn = ( ) => { } ;
6565 try {
66- expect ( routeModel ( config , `${ PINNED_PROVIDER } /claude-sonnet-5 ` ) . provider . baseUrl )
66+ expect ( routeModel ( config , `${ PINNED_PROVIDER } /gemini-3-pro ` ) . provider . baseUrl )
6767 . toBe ( PINNED_REGISTRY_BASE_URL ) ;
6868 } finally {
6969 console . warn = originalWarn ;
@@ -155,7 +155,7 @@ const ALIBABA_INTL_BASE_URL = "https://token-plan.ap-southeast-1.maas.aliyuncs.c
155155
156156test ( "alibaba-token-plan is pinned to Beijing and warns about a saved international URL" , ( ) => {
157157 const config = configFor ( "alibaba-token-plan" , {
158- adapter : "openai-chat " ,
158+ adapter : "google " ,
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
177177test ( "alibaba-token-plan-intl honors its configured international endpoint silently" , ( ) => {
178178 const config = configFor ( "alibaba-token-plan-intl" , {
179- adapter : "openai-chat " ,
179+ adapter : "google " ,
180180 baseUrl : ALIBABA_INTL_BASE_URL ,
181181 } ) ;
182182
@@ -187,7 +187,7 @@ test("alibaba-token-plan-intl honors its configured international endpoint silen
187187
188188test ( "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 : "openai-chat " , baseUrl : payg } ) ;
190+ const config = configFor ( "alibaba-token-plan-intl" , { adapter : "google " , 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 : "openai-chat " ,
200+ adapter : "google " ,
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 : "openai-chat " ,
212+ adapter : "google " ,
213213 baseUrl : "https://custom.example.test/v1" ,
214214 } ,
215215] as const ) {
0 commit comments