Class GoogleGenAiCaches.Builder
java.lang.Object
dev.langchain4j.model.google.genai.GoogleGenAiCaches.Builder
- Enclosing class:
GoogleGenAiCaches
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiEndpoint(String apiEndpoint) apiVersion(@Nullable String apiVersion) The version of the API to call, for examplev1betaorv1.build()client(com.google.genai.Client client) customHeaders(Map<String, String> customHeaders) Sets the timeout of each HTTP request to the Google GenAI API.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiKey
-
apiEndpoint
-
apiVersion
The version of the API to call, for examplev1betaorv1. When not set (null), the version set in theGOOGLE_GENAI_API_VERSIONenvironment variable is used, otherwisev1betaon the Gemini Developer API and the default of the Google GenAI SDK on Vertex AI. Ignored when a client is set withclient(...). -
customHeaders
-
timeout
Sets the timeout of each HTTP request to the Google GenAI API. It limits the whole request: connecting, waiting for the server and receiving the response. Defaults to 20 minutes. Ignored whenclient(Client)is set.- Parameters:
timeout- the timeout- Returns:
this
-
client
-
build
-