Skip to content
Discussion options

You must be logged in to vote

Hi @JJjulle,

Thank you for reaching out and for exploring SpeziLLM! We’re excited to hear it’s being considered for your application 🚀

There are two main approaches to integrating the Gemini API with SpeziLLM, depending on the level of integration you’re aiming for:

1. Leverage Gemini’s OpenAI Compatibility Layer (Minimal Changes)

As you mentioned, Gemini offers compatibility with the OpenAI API specification. This allows for a relatively straightforward integration:

You can slightly modify the SpeziLLMOpenAI target to support a configurable API endpoint when initializing either LLMOpenAIPlatform or LLMOpenAISchema. By pointing to Gemini’s OpenAI-compatible endpoint: https://generativelan…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@JJjulle
Comment options

Answer selected by JJjulle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants