Class VertexAiPalm2AutoConfiguration
java.lang.Object
org.springframework.ai.autoconfigure.vertexai.palm2.VertexAiPalm2AutoConfiguration
@AutoConfiguration(after=org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration.class)
@ConditionalOnClass(VertexAiPaLm2Api.class)
@EnableConfigurationProperties({VertexAiPalm2ConnectionProperties.class,VertexAiPlam2ChatProperties.class,VertexAiPalm2EmbeddingProperties.class})
public class VertexAiPalm2AutoConfiguration
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvertexAiApi
(VertexAiPalm2ConnectionProperties connectionProperties, VertexAiPalm2EmbeddingProperties embeddingAiProperties, VertexAiPlam2ChatProperties chatProperties, org.springframework.web.client.RestClient.Builder restClientBuilder) vertexAiChatClient
(VertexAiPaLm2Api vertexAiApi, VertexAiPlam2ChatProperties chatProperties) vertexAiEmbeddingClient
(VertexAiPaLm2Api vertexAiApi)
-
Constructor Details
-
VertexAiPalm2AutoConfiguration
public VertexAiPalm2AutoConfiguration()
-
-
Method Details
-
vertexAiApi
@Bean @ConditionalOnMissingBean public VertexAiPaLm2Api vertexAiApi(VertexAiPalm2ConnectionProperties connectionProperties, VertexAiPalm2EmbeddingProperties embeddingAiProperties, VertexAiPlam2ChatProperties chatProperties, org.springframework.web.client.RestClient.Builder restClientBuilder) -
vertexAiChatClient
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.ai.vertex.ai.chat", name="enabled", havingValue="true", matchIfMissing=true) public VertexAiPaLm2ChatClient vertexAiChatClient(VertexAiPaLm2Api vertexAiApi, VertexAiPlam2ChatProperties chatProperties) -
vertexAiEmbeddingClient
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.ai.vertex.ai.embedding", name="enabled", havingValue="true", matchIfMissing=true) public VertexAiPaLm2EmbeddingClient vertexAiEmbeddingClient(VertexAiPaLm2Api vertexAiApi)
-