Interface AiInterface
- All Known Implementing Classes:
BrowserService,GeminiService,LibrarySupportLogic,OpenAiService,OpenRouterService
public interface AiInterface
Interface for AI providers - main methods to implement in specific provider services
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidAdds provider-specific settings using a referer validated by WebJET CMS.getAiImageResponse(AssistantDefinitionEntity assistant, InputDataDTO inputData, Prop prop, AiStatRepository statRepo, jakarta.servlet.http.HttpServletRequest request) getAiResponse(AssistantDefinitionEntity assistant, InputDataDTO inputData, Prop prop, AiStatRepository statRepo, jakarta.servlet.http.HttpServletRequest request) getAiStreamResponse(AssistantDefinitionEntity assistant, InputDataDTO inputData, Prop prop, AiStatRepository statRepo, BufferedWriter writer, jakarta.servlet.http.HttpServletRequest request) default StringgetBonusHtml(AssistantDefinitionEntity assistant, Prop prop) default StringgetSupportedModels(Prop prop, jakarta.servlet.http.HttpServletRequest request) booleanisInit()
-
Method Details
-
getSupportedModels
-
getAiResponse
AssistantResponseDTO getAiResponse(AssistantDefinitionEntity assistant, InputDataDTO inputData, Prop prop, AiStatRepository statRepo, jakarta.servlet.http.HttpServletRequest request) throws ProviderCallException - Throws:
ProviderCallException
-
getAiStreamResponse
AssistantResponseDTO getAiStreamResponse(AssistantDefinitionEntity assistant, InputDataDTO inputData, Prop prop, AiStatRepository statRepo, BufferedWriter writer, jakarta.servlet.http.HttpServletRequest request) throws ProviderCallException - Throws:
ProviderCallException
-
getAiImageResponse
AssistantResponseDTO getAiImageResponse(AssistantDefinitionEntity assistant, InputDataDTO inputData, Prop prop, AiStatRepository statRepo, jakarta.servlet.http.HttpServletRequest request) throws ProviderCallException - Throws:
ProviderCallException
-
getBonusHtml
-
getProviderId
String getProviderId() -
getTitleKey
String getTitleKey() -
isInit
boolean isInit() -
getApiKey
-
getImageNameModel
-
configure
Adds provider-specific settings using a referer validated by WebJET CMS.
-