Class OCICohereChatModel
java.lang.Object
org.springframework.ai.oci.cohere.OCICohereChatModel
- All Implemented Interfaces:
ChatModel, StreamingChatModel, Model<Prompt, ChatResponse>, StreamingModel<Prompt, ChatResponse>
-
Constructor Summary
ConstructorsConstructorDescriptionOCICohereChatModel(com.oracle.bmc.generativeaiinference.GenerativeAiInference genAi, OCICohereChatOptions options) OCICohereChatModel(com.oracle.bmc.generativeaiinference.GenerativeAiInference genAi, OCICohereChatOptions options, io.micrometer.observation.ObservationRegistry observationRegistry) -
Method Summary
Modifier and TypeMethodDescriptionExecutes a method call to the AI model.voidsetObservationConvention(ChatModelObservationConvention observationConvention) Use the provided convention for reporting observation dataMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface StreamingChatModel
stream, stream
-
Constructor Details
-
OCICohereChatModel
public OCICohereChatModel(com.oracle.bmc.generativeaiinference.GenerativeAiInference genAi, OCICohereChatOptions options) -
OCICohereChatModel
public OCICohereChatModel(com.oracle.bmc.generativeaiinference.GenerativeAiInference genAi, OCICohereChatOptions options, io.micrometer.observation.ObservationRegistry observationRegistry)
-
-
Method Details
-
call
Description copied from interface:ModelExecutes a method call to the AI model. -
getDefaultOptions
- Specified by:
getDefaultOptionsin interfaceChatModel
-
setObservationConvention
Use the provided convention for reporting observation data- Parameters:
observationConvention- The provided convention
-