Class DeepSeekProvider

All Implemented Interfaces:
ExtensionPoint, Describable<BaseAIProvider>

public class DeepSeekProvider extends ChatModelAIProvider
  • Field Details

  • Constructor Details

    • DeepSeekProvider

      @DataBoundConstructor public DeepSeekProvider(String url, String model, Secret apiKey)
  • Method Details

    • getApiKey

      public Secret getApiKey()
    • createChatModel

      protected dev.langchain4j.model.chat.ChatModel createChatModel(@CheckForNull Item item, @CheckForNull org.springframework.security.core.Authentication authentication, @CheckForNull Double temperature)
      Description copied from class: ChatModelAIProvider
      Creates the chat model for one request.
      Specified by:
      createChatModel in class ChatModelAIProvider
      Parameters:
      item - the item defining the credentials scope, or null
      authentication - the authentication for credentials lookup, or null
      temperature - the temperature to use, or null for the provider default
      Returns:
      the configured chat model
    • isNotValid

      public boolean isNotValid(@CheckForNull TaskListener listener)
      Specified by:
      isNotValid in class BaseAIProvider
    • getEffectiveEndpointForDiagnostics

      public String getEffectiveEndpointForDiagnostics()
      Description copied from class: BaseAIProvider
      The endpoint URL this provider would call, used only to run connection diagnostics when a configuration test fails. Providers with a fixed or derivable default endpoint should override this to return it when no explicit URL is configured.
      Overrides:
      getEffectiveEndpointForDiagnostics in class BaseAIProvider
      Returns:
      the effective endpoint URL, or null when unknown