yyqdbngt opened a new pull request, #3436:
URL: https://github.com/apache/rocketmq-dashboard/pull/3436

   ### Summary
   
   `ClaudeCodeAgentProvider.anthropicBase` decides the `ANTHROPIC_BASE_URL` for 
the child CLI: a globally configured base wins, otherwise the request `apiBase` 
is normalized and the `/compatible-mode/v1` suffix is rewritten to 
`/apps/anthropic`. The stream tests bypassed it by overriding `childEnv`, so 
these rules were untested.
   
   ### Changes
   
   - Widen `anthropicBase` to package-private so the same-package suite can 
exercise it directly
   - Configured global base wins over the request base and is trimmed
   - Nothing configured yields `null`
   - A `/compatible-mode/v1/` request base is rewritten to `/apps/anthropic`
   - Trailing slashes are trimmed and non-compatible bases pass through 
unchanged
   
   ### Testing
   
   `mvn test -Dtest=ClaudeCodeAgentProviderTest` passes: 9 tests, 0 failures 
(up from 5).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to