Class VertexAiPaLm2ChatModel
java.lang.Object
org.springframework.ai.vertexai.palm2.VertexAiPaLm2ChatModel
- All Implemented Interfaces:
ChatModel
,StreamingChatModel
,Model<Prompt,
,ChatResponse> StreamingModel<Prompt,
ChatResponse>
- Author:
- Christian Tzolov
-
Constructor Summary
ConstructorDescriptionVertexAiPaLm2ChatModel
(VertexAiPaLm2Api vertexAiApi) VertexAiPaLm2ChatModel
(VertexAiPaLm2Api vertexAiApi, VertexAiPaLm2ChatOptions defaultOptions) -
Method Summary
Modifier and TypeMethodDescriptionExecutes a method call to the AI model.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.ai.chat.model.StreamingChatModel
stream, stream
-
Constructor Details
-
VertexAiPaLm2ChatModel
-
VertexAiPaLm2ChatModel
public VertexAiPaLm2ChatModel(VertexAiPaLm2Api vertexAiApi, VertexAiPaLm2ChatOptions defaultOptions)
-
-
Method Details
-
call
Description copied from interface:Model
Executes a method call to the AI model. -
getDefaultOptions
- Specified by:
getDefaultOptions
in interfaceChatModel
-