atiaomar1978-hub opened a new pull request, #25171: URL: https://github.com/apache/camel/pull/25171
## Summary - Extend `LlmClient` auto-detection for **Azure OpenAI** (`AZURE_OPENAI_API_KEY` + `AZURE_OPENAI_ENDPOINT`, optional deployment/API version env vars) and **GitHub Models** (`GITHUB_TOKEN` → `https://models.inference.ai.azure.com`). - Use **`api-key`** authentication for Azure OpenAI endpoints; keep **Bearer** for OpenAI-compatible hosts (OpenAI, GitHub Models). - Azure-aware **`normalizeOpenAiUrl()`** / **`normalizeOpenAiModelsUrl()`** so resource and deployment URLs are not rewritten to `/v1/chat/completions`. - Update TUI **Doctor** and **AI panel** hints for the new env vars. - Add **`LlmClientAzureGitHubTest`** (URL normalization, auth headers, local HttpServer integration) alongside existing LLM client tests. Fixes: https://issues.apache.org/jira/browse/CAMEL-24276 _AI-generated PR description on behalf of atiaomar1978-hub_ ## Test plan - [x] `mvn test -pl dsl/camel-jbang/camel-jbang-core -Dtest=LlmClientAzureGitHubTest,LlmClientListModelsTest,LlmClientVertexTest` - [x] `mvn test -pl dsl/camel-jbang/camel-jbang-plugin-tui -Dtest=AiProviderSelectorTest` Made with [Cursor](https://cursor.com) -- 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]
