Class BrowserService
java.lang.Object
sk.iway.iwcm.components.ai.providers.browser.BrowserService
- All Implemented Interfaces:
AiInterface
Service for Chrome Built-in AI:
https://developer.chrome.com/docs/ai/built-in
-
Field Summary
FieldsFields inherited from interface sk.iway.iwcm.components.ai.providers.AiInterface
GENERATE_FILE_NAME_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAiAssistantResponse
(AssistantDefinitionEntity assistant, InputDataDTO inputData, Prop prop, AiStatRepository statRepo, javax.servlet.http.HttpServletRequest request) getAiImageResponse
(AssistantDefinitionEntity assistant, InputDataDTO inputData, Prop prop, AiStatRepository statRepo, javax.servlet.http.HttpServletRequest request) getAiResponse
(AssistantDefinitionEntity assistant, InputDataDTO inputData, Prop prop, AiStatRepository statRepo, javax.servlet.http.HttpServletRequest request) getAiStreamResponse
(AssistantDefinitionEntity assistant, InputDataDTO inputData, Prop prop, AiStatRepository statRepo, BufferedWriter writer, javax.servlet.http.HttpServletRequest request) getBonusHtml
(AssistantDefinitionEntity assistant, Prop prop) getSupportedModels
(Prop prop, javax.servlet.http.HttpServletRequest request) boolean
isInit()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface sk.iway.iwcm.components.ai.providers.AiInterface
getRequestBody
-
Field Details
-
PROVIDER_ID
- See Also:
-
-
Constructor Details
-
BrowserService
public BrowserService()
-
-
Method Details
-
getProviderId
- Specified by:
getProviderId
in interfaceAiInterface
-
getTitleKey
- Specified by:
getTitleKey
in interfaceAiInterface
-
isInit
public boolean isInit()- Specified by:
isInit
in interfaceAiInterface
-
getAiAssistantResponse
public AssistantResponseDTO getAiAssistantResponse(AssistantDefinitionEntity assistant, InputDataDTO inputData, Prop prop, AiStatRepository statRepo, javax.servlet.http.HttpServletRequest request) throws Exception - Throws:
Exception
-
getAiResponse
public AssistantResponseDTO getAiResponse(AssistantDefinitionEntity assistant, InputDataDTO inputData, Prop prop, AiStatRepository statRepo, javax.servlet.http.HttpServletRequest request) - Specified by:
getAiResponse
in interfaceAiInterface
-
getAiImageResponse
public AssistantResponseDTO getAiImageResponse(AssistantDefinitionEntity assistant, InputDataDTO inputData, Prop prop, AiStatRepository statRepo, javax.servlet.http.HttpServletRequest request) throws Exception - Specified by:
getAiImageResponse
in interfaceAiInterface
- Throws:
Exception
-
getSupportedModels
public List<LabelValue> getSupportedModels(Prop prop, javax.servlet.http.HttpServletRequest request) - Specified by:
getSupportedModels
in interfaceAiInterface
-
getAiStreamResponse
public AssistantResponseDTO getAiStreamResponse(AssistantDefinitionEntity assistant, InputDataDTO inputData, Prop prop, AiStatRepository statRepo, BufferedWriter writer, javax.servlet.http.HttpServletRequest request) throws Exception - Specified by:
getAiStreamResponse
in interfaceAiInterface
- Throws:
Exception
-
getBonusHtml
- Specified by:
getBonusHtml
in interfaceAiInterface
-