Class TurGeminiLlmProvider
java.lang.Object
com.viglet.turing.genai.provider.llm.TurGeminiLlmProvider
- All Implemented Interfaces:
TurGenAiLlmProvider
Native Gemini provider using Google's GenAI SDK directly.
Requires an API key from ai.google.dev (Google AI Studio).
Uses the native Gemini API (not OpenAI-compatible layer) for full
multimodal support including images, audio, and video.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.ai.chat.model.ChatModelcreateChatModel(TurLLMInstance turLLMInstance, String decryptedApiKey) org.springframework.ai.embedding.EmbeddingModelcreateEmbeddingModel(TurLLMInstance turLLMInstance, String decryptedApiKey) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TurGenAiLlmProvider
fetchContextWindow
-
Constructor Details
-
TurGeminiLlmProvider
-
-
Method Details
-
getPluginType
- Specified by:
getPluginTypein interfaceTurGenAiLlmProvider
-
createChatModel
public org.springframework.ai.chat.model.ChatModel createChatModel(TurLLMInstance turLLMInstance, String decryptedApiKey) - Specified by:
createChatModelin interfaceTurGenAiLlmProvider
-
createEmbeddingModel
public org.springframework.ai.embedding.EmbeddingModel createEmbeddingModel(TurLLMInstance turLLMInstance, String decryptedApiKey) - Specified by:
createEmbeddingModelin interfaceTurGenAiLlmProvider
-