Class GoogleGenAiEmbeddingConnectionDetails
java.lang.Object
org.springframework.ai.google.genai.GoogleGenAiEmbeddingConnectionDetails
GoogleGenAiEmbeddingConnectionDetails represents the details of a connection to the
embedding service using the new Google Gen AI SDK. It provides methods to create and
configure the GenAI Client instance.
- Since:
- 1.0.0
- Author:
- Christian Tzolov, Mark Pollack, Ilayaperumal Gopinathan, Dan Dobrin
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
com.google.genai.Client
getModelEndpointName
(String modelName) Constructs the model endpoint name in the format expected by the embedding models.
-
Field Details
-
DEFAULT_LOCATION
- See Also:
-
DEFAULT_PUBLISHER
- See Also:
-
-
Method Details
-
builder
-
getProjectId
-
getLocation
-
getApiKey
-
getGenAiClient
public com.google.genai.Client getGenAiClient() -
getModelEndpointName
Constructs the model endpoint name in the format expected by the embedding models.- Parameters:
modelName
- the model name (e.g., "text-embedding-004")- Returns:
- the full model endpoint name
-