Interface SupportLogicInterface
- All Known Implementing Classes:
GeminiService,GeminiSupportService,OpenAiService,OpenAiSupportService,OpenRouterService,OpenRouterSupportService,SupportLogic
public interface SupportLogicInterface
-
Method Summary
Modifier and TypeMethodDescriptionintaddUsageAndReturnTotal(StringBuilder sb, int addTokens, com.fasterxml.jackson.databind.JsonNode root) extractModels(com.fasterxml.jackson.databind.JsonNode root) extractResponseText(com.fasterxml.jackson.databind.JsonNode jsonNodeRes) getFinishError(com.fasterxml.jackson.databind.JsonNode jsonNodeRes) getImageBase64(com.fasterxml.jackson.databind.JsonNode jsonNodeRes, com.fasterxml.jackson.databind.JsonNode jsonImage) getImageFormat(com.fasterxml.jackson.databind.JsonNode jsonNodeRes, com.fasterxml.jackson.databind.JsonNode jsonImage) org.apache.http.client.methods.HttpRequestBasegetImageResponseRequest(String instructions, InputDataDTO inputData, AssistantDefinitionEntity assistant, javax.servlet.http.HttpServletRequest request, Prop prop) com.fasterxml.jackson.databind.node.ArrayNodegetImages(com.fasterxml.jackson.databind.JsonNode jsonNodeRes) org.apache.http.client.methods.HttpRequestBasegetModelsRequest(javax.servlet.http.HttpServletRequest request) org.apache.http.client.methods.HttpRequestBasegetResponseRequest(String instructions, InputDataDTO inputData, AssistantDefinitionEntity assistant, javax.servlet.http.HttpServletRequest request) default StringgetStreamEncoding(org.apache.http.HttpEntity entity) org.apache.http.client.methods.HttpRequestBasegetStremResponseRequest(String instructions, InputDataDTO inputData, AssistantDefinitionEntity assistant, javax.servlet.http.HttpServletRequest request) handleBufferedReader(BufferedReader reader, BufferedWriter writer, Map<Integer, String> replacedIncludes)
-
Method Details
-
getServiceName
String getServiceName() -
addUsageAndReturnTotal
int addUsageAndReturnTotal(StringBuilder sb, int addTokens, com.fasterxml.jackson.databind.JsonNode root) -
getFinishError
-
getModelsRequest
org.apache.http.client.methods.HttpRequestBase getModelsRequest(javax.servlet.http.HttpServletRequest request) -
extractModels
-
getResponseRequest
org.apache.http.client.methods.HttpRequestBase getResponseRequest(String instructions, InputDataDTO inputData, AssistantDefinitionEntity assistant, javax.servlet.http.HttpServletRequest request) throws IOException - Throws:
IOException
-
extractResponseText
-
getStremResponseRequest
org.apache.http.client.methods.HttpRequestBase getStremResponseRequest(String instructions, InputDataDTO inputData, AssistantDefinitionEntity assistant, javax.servlet.http.HttpServletRequest request) throws IOException - Throws:
IOException
-
handleBufferedReader
Pair<String,com.fasterxml.jackson.databind.JsonNode> handleBufferedReader(BufferedReader reader, BufferedWriter writer, Map<Integer, String> replacedIncludes) throws IOException- Throws:
IOException
-
getStreamEncoding
-
getImageResponseRequest
org.apache.http.client.methods.HttpRequestBase getImageResponseRequest(String instructions, InputDataDTO inputData, AssistantDefinitionEntity assistant, javax.servlet.http.HttpServletRequest request, Prop prop) throws IOException - Throws:
IOException
-
getImages
com.fasterxml.jackson.databind.node.ArrayNode getImages(com.fasterxml.jackson.databind.JsonNode jsonNodeRes) -
getImageFormat
String getImageFormat(com.fasterxml.jackson.databind.JsonNode jsonNodeRes, com.fasterxml.jackson.databind.JsonNode jsonImage) -
getImageBase64
String getImageBase64(com.fasterxml.jackson.databind.JsonNode jsonNodeRes, com.fasterxml.jackson.databind.JsonNode jsonImage) -
getModelForImageNameGeneration
String getModelForImageNameGeneration()
-