Interface SupportLogicInterface

All Known Implementing Classes:
GeminiService, GeminiSupportService, OpenAiService, OpenAiSupportService, OpenRouterService, OpenRouterSupportService, SupportLogic

public interface SupportLogicInterface
  • Method Details

    • getServiceName

      String getServiceName()
    • addUsageAndReturnTotal

      int addUsageAndReturnTotal(StringBuilder sb, int addTokens, com.fasterxml.jackson.databind.JsonNode root)
    • getFinishError

      String getFinishError(com.fasterxml.jackson.databind.JsonNode jsonNodeRes)
    • getModelsRequest

      org.apache.http.client.methods.HttpRequestBase getModelsRequest(javax.servlet.http.HttpServletRequest request)
    • extractModels

      List<LabelValue> extractModels(com.fasterxml.jackson.databind.JsonNode root)
    • getResponseRequest

      org.apache.http.client.methods.HttpRequestBase getResponseRequest(String instructions, InputDataDTO inputData, AssistantDefinitionEntity assistant, javax.servlet.http.HttpServletRequest request)
    • extractResponseText

      String extractResponseText(com.fasterxml.jackson.databind.JsonNode jsonNodeRes)
    • getStremResponseRequest

      org.apache.http.client.methods.HttpRequestBase getStremResponseRequest(String instructions, InputDataDTO inputData, AssistantDefinitionEntity assistant, javax.servlet.http.HttpServletRequest request)
    • handleBufferedReader

      com.fasterxml.jackson.databind.JsonNode handleBufferedReader(BufferedReader reader, BufferedWriter writer, Map<Integer,String> replacedIncludes) throws IOException
      Throws:
      IOException
    • getStreamEncoding

      default String getStreamEncoding(org.apache.http.HttpEntity entity)
    • 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()