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})
public class OCIGenAiAutoConfiguration
extends Object
- Author:
- Anders Swanson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.oracle.bmc.generativeaiinference.GenerativeAiInferenceClient
generativeAiInferenceClient
(OCIConnectionProperties properties) ociEmbeddingModel
(com.oracle.bmc.generativeaiinference.GenerativeAiInferenceClient generativeAiClient, OCIEmbeddingModelProperties properties)
-
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)
-