Class OCICohereChatModel
java.lang.Object
org.springframework.ai.oci.cohere.OCICohereChatModel
- All Implemented Interfaces:
- ChatModel,- StreamingChatModel,- Model<Prompt,,- ChatResponse> - StreamingModel<Prompt,- ChatResponse> 
ChatModel implementation that uses the OCI GenAI Chat API.- Since:
- 1.0.0
- Author:
- Anders Swanson, Alexandros Pappas
- 
Constructor SummaryConstructorsConstructorDescriptionOCICohereChatModel(com.oracle.bmc.generativeaiinference.GenerativeAiInference genAi, OCICohereChatOptions options) OCICohereChatModel(com.oracle.bmc.generativeaiinference.GenerativeAiInference genAi, OCICohereChatOptions options, io.micrometer.observation.ObservationRegistry observationRegistry) 
- 
Method SummaryModifier and TypeMethodDescriptionExecutes a method call to the AI model.voidsetObservationConvention(ChatModelObservationConvention observationConvention) Use the provided convention for reporting observation dataMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ai.chat.model.StreamingChatModelstream, stream
- 
Constructor Details- 
OCICohereChatModelpublic OCICohereChatModel(com.oracle.bmc.generativeaiinference.GenerativeAiInference genAi, OCICohereChatOptions options) 
- 
OCICohereChatModelpublic OCICohereChatModel(com.oracle.bmc.generativeaiinference.GenerativeAiInference genAi, OCICohereChatOptions options, io.micrometer.observation.ObservationRegistry observationRegistry) 
 
- 
- 
Method Details- 
callDescription copied from interface:ModelExecutes a method call to the AI model.
- 
getDefaultOptions- Specified by:
- getDefaultOptionsin interface- ChatModel
 
- 
setObservationConventionUse the provided convention for reporting observation data- Parameters:
- observationConvention- The provided convention
 
 
-