Class GeminiService
java.lang.Object
sk.iway.iwcm.components.ai.providers.LibrarySupportLogic
sk.iway.iwcm.components.ai.providers.gemini.GeminiService
- All Implemented Interfaces:
AiAssitantsInterface,AiInterface
WebJET UI and lifecycle adapter for the standalone Gemini provider.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGeminiService(com.webjetcms.ai.AiClient aiClient, WebjetAiConfigurationService configurationService) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds provider-specific settings using a referer validated by WebJET CMS.getFieldsToShow(String action) voidprepareBeforeSave(AssistantDefinitionEntity assistantEntity) voidMethods inherited from class sk.iway.iwcm.components.ai.providers.LibrarySupportLogic
configurationService, getAiImageResponse, getAiResponse, getAiStreamResponse, getBonusHtml, getSupportedModels, isInitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface sk.iway.iwcm.components.ai.providers.AiAssitantsInterface
isInit
-
Field Details
-
API_KEY
- See Also:
-
IMAGE_NAME_MODEL
- See Also:
-
-
Constructor Details
-
GeminiService
@Autowired public GeminiService(com.webjetcms.ai.AiClient aiClient, WebjetAiConfigurationService configurationService)
-
-
Method Details
-
getProviderId
- Specified by:
getProviderIdin interfaceAiAssitantsInterface- Specified by:
getProviderIdin interfaceAiInterface
-
getTitleKey
- Specified by:
getTitleKeyin interfaceAiInterface
-
getApiKey
- Specified by:
getApiKeyin interfaceAiInterface
-
getImageNameModel
- Specified by:
getImageNameModelin interfaceAiInterface
-
configure
Description copied from interface:AiInterfaceAdds provider-specific settings using a referer validated by WebJET CMS.- Specified by:
configurein interfaceAiInterface
-
getFieldsToShow
- Specified by:
getFieldsToShowin interfaceAiAssitantsInterface
-
prepareBeforeSave
- Specified by:
prepareBeforeSavein interfaceAiAssitantsInterface
-
setProviderSpecificOptions
public void setProviderSpecificOptions(DatatablePageImpl<AssistantDefinitionEntity> page, Prop prop) - Specified by:
setProviderSpecificOptionsin interfaceAiAssitantsInterface
-