Interface TurGenAiLlmProvider
- All Known Implementing Classes:
TurAnthropicLlmProvider, TurAzureOpenAiLlmProvider, TurGeminiLlmProvider, TurGeminiOpenAiLlmProvider, TurOllamaLlmProvider, TurOpenAiLlmProvider
public interface TurGenAiLlmProvider
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.ai.chat.model.ChatModelcreateChatModel(TurLLMInstance turLLMInstance, String decryptedApiKey) org.springframework.ai.embedding.EmbeddingModelcreateEmbeddingModel(TurLLMInstance turLLMInstance, String decryptedApiKey) default OptionalIntfetchContextWindow(TurLLMInstance turLLMInstance, String decryptedApiKey) Fetches the actual context window size from the provider's API.
-
Method Details
-
getPluginType
String getPluginType() -
createChatModel
org.springframework.ai.chat.model.ChatModel createChatModel(TurLLMInstance turLLMInstance, String decryptedApiKey) -
createEmbeddingModel
org.springframework.ai.embedding.EmbeddingModel createEmbeddingModel(TurLLMInstance turLLMInstance, String decryptedApiKey) -
fetchContextWindow
Fetches 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.
-