davsclaus opened a new pull request, #25936: URL: https://github.com/apache/camel/pull/25936
## Summary - `LlmClient.resolveAnthropicUrl()` built the Vertex AI Anthropic endpoint by always prefixing the host with `<region>-`. That's correct for regional locations (e.g. `us-east5`) but wrong for the `global` location, whose actual host is `aiplatform.googleapis.com` with no region prefix. - With `CLOUD_ML_REGION=global` set, requests went to the non-existent host `global-aiplatform.googleapis.com`, causing the TUI's F8 AI panel and `camel ask`/`explain`/`harden` to fail with a generic "LLM request failed" error whenever the Vertex AI auto-detect path was used with the global region. - Special-case `global` to omit the region prefix from the host while keeping `locations/global` in the path. ## Test plan - [x] `mvn -q -DskipTests install` on `camel-jbang-core` - [x] `mvn formatter:format impsort:sort` — no changes needed - [x] Reproduced the original failure live in the TUI's F8 AI panel with `CLOUD_ML_REGION=global` + `ANTHROPIC_VERTEX_PROJECT_ID` set and no `ANTHROPIC_API_KEY` _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
