Class GeminiSupportService

java.lang.Object
sk.iway.iwcm.components.ai.providers.SupportLogic
sk.iway.iwcm.components.ai.providers.gemini.GeminiSupportService
All Implemented Interfaces:
SupportLogicInterface
Direct Known Subclasses:
GeminiService

public abstract class GeminiSupportService extends SupportLogic
Support service for Gemini AI model integration - common methods
  • Field Details

  • Constructor Details

    • GeminiSupportService

      public GeminiSupportService()
  • Method Details

    • getBaseMainObject

      protected com.fasterxml.jackson.databind.node.ObjectNode getBaseMainObject(String... parts) throws IOException
      Throws:
      IOException
    • getBaseMainObjectWithImage

      protected com.fasterxml.jackson.databind.node.ObjectNode getBaseMainObjectWithImage(InputDataDTO inputData, String... parts) throws IOException
      Throws:
      IOException
    • setHeaders

      protected <T extends org.apache.http.client.methods.HttpRequestBase> void setHeaders(T http, javax.servlet.http.HttpServletRequest request)
    • getParts

      protected com.fasterxml.jackson.databind.node.ArrayNode getParts(com.fasterxml.jackson.databind.JsonNode root)
    • getApiKey

      public static String getApiKey()