Class TurOllamaLlmProvider
java.lang.Object
com.viglet.turing.genai.provider.llm.TurOllamaLlmProvider
- All Implemented Interfaces:
TurGenAiLlmProvider
-
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) fetchContextWindow(TurLLMInstance turLLMInstance, String decryptedApiKey) Fetches the actual context window size from the provider's API.
-
Constructor Details
-
TurOllamaLlmProvider
-
-
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
-
fetchContextWindow
Description copied from interface:TurGenAiLlmProviderFetches the actual context window size from the provider's API. Returns empty if the provider doesn't support runtime discovery, in which case the stored contextWindow value from the instance is used.- Specified by:
fetchContextWindowin interfaceTurGenAiLlmProvider
-