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})
@ImportAutoConfiguration(classes={SpringAiRetryAutoConfiguration.class,org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration.class,org.springframework.boot.autoconfigure.web.reactive.function.client.WebClientAutoConfiguration.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) vertexAiChatModel
(VertexAiPaLm2Api vertexAiApi, VertexAiPlam2ChatProperties chatProperties) vertexAiEmbeddingModel
(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) -
vertexAiChatModel
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.ai.vertex.ai.chat", name="enabled", havingValue="true", matchIfMissing=true) public VertexAiPaLm2ChatModel vertexAiChatModel(VertexAiPaLm2Api vertexAiApi, VertexAiPlam2ChatProperties chatProperties) -
vertexAiEmbeddingModel
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.ai.vertex.ai.embedding", name="enabled", havingValue="true", matchIfMissing=true) public VertexAiPaLm2EmbeddingModel vertexAiEmbeddingModel(VertexAiPaLm2Api vertexAiApi)
-