[
https://issues.apache.org/jira/browse/CAMEL-24339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18101662#comment-18101662
]
Claus Ibsen commented on CAMEL-24339:
-------------------------------------
_Claude Code on behalf of davsclaus_
*Expanded vision: llm as a multi-provider component*
Beyond just aliasing the OpenAI scheme, the {{llm}} component could grow to
support multiple LLM providers directly — similar to how the Camel CLI/TUI
{{ask}} command already works via {{LlmClient}}.
The CLI/TUI today supports 5 providers over 4 wire protocols, all using plain
HTTP (no vendor SDKs):
||Wire Protocol||Providers||
|OpenAI-compatible ({{/v1/chat/completions}})|OpenAI, Azure OpenAI, IBM
watsonx, vLLM, LM Studio, OpenRouter, Ollama (compat mode)|
|Anthropic Messages ({{/v1/messages}})|Anthropic, Vertex AI (via rawPredict)|
|Gemini generateContent|Google Gemini|
|Ollama native ({{/api/chat}})|Ollama|
For the {{llm}} component, this could be phased:
*Phase 1 (4.22):* Add {{llm}} as an alias scheme for the current
OpenAI-compatible implementation. Both {{llm:chat-completion}} and
{{openai:chat-completion}} work. Two doc files are generated
({{llm-component.adoc}} and {{openai-component.adoc}}).
*Phase 2 (future):* Add a {{provider}} option on the {{llm}} component (e.g.,
{{provider=anthropic}}, {{provider=gemini}}, {{provider=bedrock}}) that selects
the wire protocol and auth pattern. The default would remain {{openai}} (the
most widely compatible). This would bring the same multi-provider support that
the CLI/TUI already has into Camel routes.
Providers to consider for Phase 2:
- AWS Bedrock (converse API)
- Anthropic (Messages API)
- Google Gemini / Vertex AI
- IBM watsonx.ai
- Azure AI (beyond OpenAI-compatible)
This positions {{llm}} as the go-to component for LLM integration in Camel,
with the current {{openai}} scheme as an alias for backward compatibility.
> camel-openai - Can the name be updated to better hint it works for many
> vendor LLMs
> -----------------------------------------------------------------------------------
>
> Key: CAMEL-24339
> URL: https://issues.apache.org/jira/browse/CAMEL-24339
> Project: Camel
> Issue Type: Task
> Components: camel-ai
> Reporter: Claus Ibsen
> Priority: Major
> Fix For: 4.22.0
>
>
> The openai is making people think its for this vendor only. But its openai
> compatible, which a lot of LLMs are today, so you can use it with many.
>
> Before the LTS release we have a chance to do a last minute rename if we can
> come up with a better name.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)