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

    • addPartWithFile

      protected void addPartWithFile(com.fasterxml.jackson.databind.node.ArrayNode contentsArray, String value, String mimeType, String fileData)
    • getBaseMainObject

      protected com.fasterxml.jackson.databind.node.ObjectNode getBaseMainObject(String... parts)
    • addPart

      protected void addPart(com.fasterxml.jackson.databind.node.ArrayNode contentsArray, String value)
    • addPart

      protected void addPart(com.fasterxml.jackson.databind.node.ArrayNode contentsArray, String value, com.fasterxml.jackson.databind.node.ObjectNode inlineData)
    • 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()