Class CmsAiModel

java.lang.Object
org.opencms.ai.CmsAiModel

public class CmsAiModel extends Object
Provides a wrapper for an AI model with provider configuration.
Since:
21.0.0
  • Constructor Details

  • Method Details

    • getChatModel

      public dev.langchain4j.model.chat.ChatModel getChatModel()
      Returns a chat model initialized with the provider configuration.

      Returns:
      a chat model initialized with the provider configuration
    • getStreamingChatModel

      public dev.langchain4j.model.chat.StreamingChatModel getStreamingChatModel()
      Returns a streaming chat model initialized with the provider configuration.

      Returns:
      a streaming chat model initialized with the provider configuration