@@ -49,10 +49,10 @@ describe('OpenClaw Writer', () => {
4949 const openclawConfig = JSON . parse ( fs . readFileSync ( configPath , 'utf-8' ) )
5050 const modelsConfig = JSON . parse ( fs . readFileSync ( modelsPath , 'utf-8' ) )
5151
52- expect ( openclawConfig . agents ?. defaults ?. model ?. primary ) . toBe ( 'sub2api /gpt-5.3-codex' )
52+ expect ( openclawConfig . agents ?. defaults ?. model ?. primary ) . toBe ( 'GMN /gpt-5.3-codex' )
5353 expect ( typeof openclawConfig . agents ?. defaults ?. workspace ) . toBe ( 'string' )
5454
55- const provider = modelsConfig . providers ?. sub2api
55+ const provider = modelsConfig . providers ?. GMN
5656 expect ( provider . baseUrl ) . toBe ( 'https://gmn.chuangzuoli.com/v1' )
5757 expect ( provider . apiKey ) . toBe ( 'sk-openclaw-test' )
5858 expect ( provider . api ) . toBe ( 'openai-responses' )
@@ -114,7 +114,7 @@ describe('OpenClaw Writer', () => {
114114 expect ( openclawConfig . customField ) . toBeUndefined ( )
115115 expect ( modelsConfig . customField ) . toBeUndefined ( )
116116 expect ( modelsConfig . providers ?. legacy ) . toBeUndefined ( )
117- expect ( modelsConfig . providers ?. sub2api ?. apiKey ) . toBe ( 'sk-new-openclaw' )
117+ expect ( modelsConfig . providers ?. GMN ?. apiKey ) . toBe ( 'sk-new-openclaw' )
118118 } )
119119
120120 it ( 'should fallback to built-in templates when template files are unavailable' , ( ) => {
@@ -137,8 +137,8 @@ describe('OpenClaw Writer', () => {
137137 const openclawConfig = JSON . parse ( fs . readFileSync ( configPath , 'utf-8' ) )
138138 const modelsConfig = JSON . parse ( fs . readFileSync ( modelsPath , 'utf-8' ) )
139139
140- expect ( openclawConfig . agents ?. defaults ?. model ?. primary ) . toBe ( 'sub2api /gpt-5.3-codex' )
141- expect ( modelsConfig . providers ?. sub2api ?. api ) . toBe ( 'openai-responses' )
140+ expect ( openclawConfig . agents ?. defaults ?. model ?. primary ) . toBe ( 'GMN /gpt-5.3-codex' )
141+ expect ( modelsConfig . providers ?. GMN ?. api ) . toBe ( 'openai-responses' )
142142 } finally {
143143 fs . renameSync ( openclawTemplateBackupPath , openclawTemplatePath )
144144 fs . renameSync ( modelsTemplateBackupPath , modelsTemplatePath )
0 commit comments