Class LocalTextProvider

java.lang.Object
sk.iway.iwcm.components.ai.providers.local.ConfiguredLocalProvider
sk.iway.iwcm.components.ai.providers.local.text.LocalTextProvider
All Implemented Interfaces:
com.webjetcms.ai.AiProvider, AutoCloseable

@Component @Conditional(LocalAiAvailableCondition.class) public final class LocalTextProvider extends ConfiguredLocalProvider
Lazily opens the configured local EuroLLM-1.7B-Instruct text model.
  • Field Details

  • Constructor Details

    • LocalTextProvider

      public LocalTextProvider()
  • Method Details

    • inputHandling

      public com.webjetcms.ai.AiInputHandling inputHandling(com.webjetcms.ai.AiOperation operation)
      Selects literal input for text generation and protected-prompt handling for other operations.
      Parameters:
      operation - requested AI operation
      Returns:
      literal handling for text operations; protected-prompt handling otherwise