Class OCIGenAiAutoConfiguration

java.lang.Object
org.springframework.ai.autoconfigure.oci.genai.OCIGenAiAutoConfiguration

@AutoConfiguration @ConditionalOnClass({com.oracle.bmc.generativeaiinference.GenerativeAiInferenceClient.class,OCIEmbeddingModel.class}) @EnableConfigurationProperties({OCIConnectionProperties.class,OCIEmbeddingModelProperties.class,OCICohereChatModelProperties.class}) public class OCIGenAiAutoConfiguration extends Object
Auto-configuration for Oracle Cloud Infrastructure Generative AI.
Author:
Anders Swanson
  • Constructor Details

    • OCIGenAiAutoConfiguration

      public OCIGenAiAutoConfiguration()
  • Method Details

    • generativeAiInferenceClient

      @ConditionalOnMissingBean @Bean public com.oracle.bmc.generativeaiinference.GenerativeAiInferenceClient generativeAiInferenceClient(OCIConnectionProperties properties) throws IOException
      Throws:
      IOException
    • ociEmbeddingModel

      @Bean @ConditionalOnProperty(prefix="spring.ai.oci.genai.embedding", name="enabled", havingValue="true", matchIfMissing=true) public OCIEmbeddingModel ociEmbeddingModel(com.oracle.bmc.generativeaiinference.GenerativeAiInferenceClient generativeAiClient, OCIEmbeddingModelProperties properties)
    • ociChatModel

      @Bean @ConditionalOnProperty(prefix="spring.ai.oci.genai.cohere.chat", name="enabled", havingValue="true", matchIfMissing=true) public OCICohereChatModel ociChatModel(com.oracle.bmc.generativeaiinference.GenerativeAiInferenceClient generativeAiClient, OCICohereChatModelProperties properties, org.springframework.beans.factory.ObjectProvider<io.micrometer.observation.ObservationRegistry> observationRegistry, org.springframework.beans.factory.ObjectProvider<ChatModelObservationConvention> observationConvention)