atiaomar1978-hub opened a new pull request, #26606:
URL: https://github.com/apache/camel/pull/26606

   # Description
   
   Adds `llm` as the primary URI scheme for the `camel-openai` component, with 
`openai` retained as a backward-compatible alias. This addresses 
discoverability concerns in CAMEL-24339: the component works with any 
OpenAI-compatible API (Ollama, vLLM, LM Studio, OpenRouter, Azure OpenAI, 
etc.), not OpenAI alone.
   
   **Phase 1 approach (per JIRA discussion with @davsclaus):** scheme alias 
only — no Maven artifact rename, no Java package rename, no header constant 
changes.
   
   ## Changes
   
   - `@Component("llm,openai")` on `OpenAIComponent`
   - `@UriEndpoint(scheme = "llm,openai", title = "LLM,OpenAI", syntax = 
"llm:operation")` on `OpenAIEndpoint`
   - Regenerated catalog metadata (`llm.json`, updated `openai.json`), 
component/endpoint DSL (`llm()` builders), and service loader entries
   - Updated component documentation (`openai-component.adoc` title/shortname → 
LLM) and AI summary
   - Added 4.23 upgrade guide entry (URI alias, Endpoint DSL `llm()` migration, 
independent `camel.component.llm.*` config)
   - Added `docs/components/modules/ROOT/examples/json/llm.json`
   - Added `OpenAISchemeAliasTest` covering independent component instances and 
chat completion for both schemes
   
   ## Backward compatibility
   
   - Existing `openai:chat-completion` routes continue to work unchanged
   - Maven artifact remains `camel-openai`
   - `CamelOpenAI*` headers unchanged
   - `camel.component.openai.*` and `camel.component.llm.*` configure separate 
component instances
   - Component DSL retains both `llm()` and `openai()`; Endpoint DSL primary 
helper is now `llm()`
   
   ## Testing
   
   ```
   ./mvnw -pl components/camel-ai/camel-openai test -Dtest=OpenAISchemeAliasTest
   ```
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a JIRA issue filed for the change.
   
   https://issues.apache.org/jira/browse/CAMEL-24339
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [ ] I have run `mvn clean install -DskipTests` locally from root folder 
and I have committed all auto-generated changes.
   
   # AI-assisted contributions
   
   - [x] If this PR includes AI-generated code, commits have proper 
co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR 
description identifies the AI tool used.
   
   _AI-generated PR description on behalf of atiaomar1978-hub (Cursor Agent)_


-- 
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