@@ -2345,7 +2345,7 @@ describe('docker-manager', () => {
23452345 const result = generateDockerCompose ( configWithProxy , mockNetworkConfigWithProxy ) ;
23462346 const agent = result . services . agent ;
23472347 const env = agent . environment as Record < string , string > ;
2348- expect ( env . OPENAI_BASE_URL ) . toBe ( 'http://172.30.0.30:10000/v1 ' ) ;
2348+ expect ( env . OPENAI_BASE_URL ) . toBe ( 'http://172.30.0.30:10000' ) ;
23492349 } ) ;
23502350
23512351 it ( 'should configure HTTP_PROXY and HTTPS_PROXY in api-proxy to route through Squid' , ( ) => {
@@ -2372,7 +2372,7 @@ describe('docker-manager', () => {
23722372 const result = generateDockerCompose ( configWithProxy , mockNetworkConfigWithProxy ) ;
23732373 const agent = result . services . agent ;
23742374 const env = agent . environment as Record < string , string > ;
2375- expect ( env . OPENAI_BASE_URL ) . toBe ( 'http://172.30.0.30:10000/v1 ' ) ;
2375+ expect ( env . OPENAI_BASE_URL ) . toBe ( 'http://172.30.0.30:10000' ) ;
23762376 expect ( env . ANTHROPIC_BASE_URL ) . toBe ( 'http://172.30.0.30:10001' ) ;
23772377 expect ( env . ANTHROPIC_AUTH_TOKEN ) . toBe ( 'sk-ant-placeholder-key-for-credential-isolation' ) ;
23782378 expect ( env . CLAUDE_CODE_API_KEY_HELPER ) . toBe ( '/usr/local/bin/get-claude-key.sh' ) ;
@@ -2395,7 +2395,7 @@ describe('docker-manager', () => {
23952395 const agent = result . services . agent ;
23962396 const env = agent . environment as Record < string , string > ;
23972397 expect ( env . ANTHROPIC_BASE_URL ) . toBeUndefined ( ) ;
2398- expect ( env . OPENAI_BASE_URL ) . toBe ( 'http://172.30.0.30:10000/v1 ' ) ;
2398+ expect ( env . OPENAI_BASE_URL ) . toBe ( 'http://172.30.0.30:10000' ) ;
23992399 } ) ;
24002400
24012401 it ( 'should set AWF_API_PROXY_IP in agent environment' , ( ) => {
@@ -2467,7 +2467,7 @@ describe('docker-manager', () => {
24672467 // Agent should NOT have the raw API key — only the sidecar gets it
24682468 expect ( env . OPENAI_API_KEY ) . toBeUndefined ( ) ;
24692469 // Agent should have OPENAI_BASE_URL to proxy through sidecar
2470- expect ( env . OPENAI_BASE_URL ) . toBe ( 'http://172.30.0.30:10000/v1 ' ) ;
2470+ expect ( env . OPENAI_BASE_URL ) . toBe ( 'http://172.30.0.30:10000' ) ;
24712471 } finally {
24722472 if ( origKey !== undefined ) {
24732473 process . env . OPENAI_API_KEY = origKey ;
@@ -2490,7 +2490,7 @@ describe('docker-manager', () => {
24902490 // CODEX_API_KEY should NOT be passed to agent when api-proxy is enabled
24912491 expect ( env . CODEX_API_KEY ) . toBeUndefined ( ) ;
24922492 // OPENAI_BASE_URL should be set when api-proxy is enabled with openaiApiKey
2493- expect ( env . OPENAI_BASE_URL ) . toBe ( 'http://172.30.0.30:10000/v1 ' ) ;
2493+ expect ( env . OPENAI_BASE_URL ) . toBe ( 'http://172.30.0.30:10000' ) ;
24942494 } finally {
24952495 if ( origKey !== undefined ) {
24962496 process . env . CODEX_API_KEY = origKey ;
@@ -2512,7 +2512,7 @@ describe('docker-manager', () => {
25122512 // Even with envAll, agent should NOT have OPENAI_API_KEY when api-proxy is enabled
25132513 expect ( env . OPENAI_API_KEY ) . toBeUndefined ( ) ;
25142514 // Agent should have OPENAI_BASE_URL to proxy through sidecar
2515- expect ( env . OPENAI_BASE_URL ) . toBe ( 'http://172.30.0.30:10000/v1 ' ) ;
2515+ expect ( env . OPENAI_BASE_URL ) . toBe ( 'http://172.30.0.30:10000' ) ;
25162516 } finally {
25172517 if ( origKey !== undefined ) {
25182518 process . env . OPENAI_API_KEY = origKey ;
0 commit comments