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
Support service for Gemini AI model integration - common methods
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringprotected com.fasterxml.jackson.databind.node.ObjectNodegetBaseMainObject(String... parts) protected com.fasterxml.jackson.databind.node.ObjectNodegetBaseMainObjectWithImage(InputDataDTO inputData, String... parts) protected com.fasterxml.jackson.databind.node.ArrayNodegetParts(com.fasterxml.jackson.databind.JsonNode root) protected <T extends org.apache.http.client.methods.HttpRequestBase>
voidsetHeaders(T http, javax.servlet.http.HttpServletRequest request) Methods inherited from class sk.iway.iwcm.components.ai.providers.SupportLogic
getAiImageResponse, getAiResponse, getAiStreamResponse, getSupportedModels, handleErrorMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface sk.iway.iwcm.components.ai.providers.SupportLogicInterface
addUsageAndReturnTotal, extractModels, extractResponseText, getFinishError, getImageBase64, getImageFormat, getImageResponseRequest, getImages, getModelForImageNameGeneration, getModelsRequest, getResponseRequest, getServiceName, getStreamEncoding, getStremResponseRequest, handleBufferedReader
-
Field Details
-
AUTH_KEY
- See Also:
-
SERVICE_NAME
- See Also:
-
PARTS
- See Also:
-
MAPPER
protected static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
-
-
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
-