Claus Ibsen created CAMEL-24275:
-----------------------------------

             Summary: camel-tui: Add Google Gemini native API support for AI 
prompt
                 Key: CAMEL-24275
                 URL: https://issues.apache.org/jira/browse/CAMEL-24275
             Project: Camel
          Issue Type: Improvement
          Components: camel-jbang
            Reporter: Claus Ibsen


The TUI AI prompt (F8) currently supports three LLM API formats: Ollama native, 
OpenAI-compatible, and Anthropic (direct + Vertex AI). Google Gemini uses its 
own API format and is not natively supported.

Gemini is widely used (especially with its free tier) and should be supported 
natively rather than requiring users to manually configure the 
OpenAI-compatible endpoint.

What is needed:
- Add ApiType.gemini to LlmClient
- Implement Gemini native API format (generativelanguage.googleapis.com)
- Auto-detect via GOOGLE_API_KEY or GEMINI_API_KEY environment variables
- Implement Gemini tool-calling format (function declarations / function calls)
- Support model listing via Gemini API
- Add Gemini as a provider choice in the AI panel provider switch popup

Gemini also offers an OpenAI-compatible endpoint which could serve as an 
alternative path, but native support provides better auto-detection and a more 
seamless experience.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to