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.
-
Nested Class Summary
Nested classes/interfaces inherited from class sk.iway.iwcm.components.ai.providers.local.ConfiguredLocalProvider
ConfiguredLocalProvider.ProviderOpener -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.webjetcms.ai.AiInputHandlinginputHandling(com.webjetcms.ai.AiOperation operation) Selects literal input for text generation and protected-prompt handling for other operations.Methods inherited from class sk.iway.iwcm.components.ai.providers.local.ConfiguredLocalProvider
close, embed, execute, id, isConfigured, listModels, streamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.webjetcms.ai.AiProvider
imageOptions
-
Field Details
-
BUNDLE_PATH_CONSTANT
- See Also:
-
MODEL_ID
- See Also:
-
PROVIDER_ID
- See Also:
-
-
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
-