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) booleanisInit()Methods 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.AiInterface
getRequestBody
-
Field Details
-
PROVIDER_ID
- See Also:
-
-
Constructor Details
-
BrowserService
public BrowserService()
-
-
Method Details
-
getProviderId
- Specified by:
getProviderIdin interfaceAiInterface
-
getTitleKey
- Specified by:
getTitleKeyin interfaceAiInterface
-
isInit
public boolean isInit()- Specified by:
isInitin 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:
getAiResponsein interfaceAiInterface
-
getAiImageResponse
public AssistantResponseDTO getAiImageResponse(AssistantDefinitionEntity assistant, InputDataDTO inputData, Prop prop, AiStatRepository statRepo, javax.servlet.http.HttpServletRequest request) throws ProviderCallException - Specified by:
getAiImageResponsein interfaceAiInterface- Throws:
ProviderCallException
-
getSupportedModels
public List<LabelValue> getSupportedModels(Prop prop, javax.servlet.http.HttpServletRequest request) - Specified by:
getSupportedModelsin interfaceAiInterface
-
getAiStreamResponse
public AssistantResponseDTO getAiStreamResponse(AssistantDefinitionEntity assistant, InputDataDTO inputData, Prop prop, AiStatRepository statRepo, BufferedWriter writer, javax.servlet.http.HttpServletRequest request) throws ProviderCallException - Specified by:
getAiStreamResponsein interfaceAiInterface- Throws:
ProviderCallException
-
getBonusHtml
- Specified by:
getBonusHtmlin interfaceAiInterface
-