Interface TurGenAiLlmProvider

All Known Implementing Classes:
TurAnthropicLlmProvider, TurAzureOpenAiLlmProvider, TurGeminiLlmProvider, TurGeminiOpenAiLlmProvider, TurOllamaLlmProvider, TurOpenAiLlmProvider

public interface TurGenAiLlmProvider
  • 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

      default OptionalInt fetchContextWindow(TurLLMInstance turLLMInstance, String decryptedApiKey)
      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.