Package dev.langchain4j.model.chatglm
Class ChatGlmChatModel
java.lang.Object
dev.langchain4j.model.chatglm.ChatGlmChatModel
- All Implemented Interfaces:
ChatLanguageModel
Support ChatGLM,
ChatGLM2 and ChatGLM3 api are compatible with OpenAI API
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
generate
(List<ChatMessage> messages) Generates a response from the model based on a sequence of messages.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.langchain4j.model.chat.ChatLanguageModel
chat, generate, generate, generate, generate, supportedCapabilities
-
Constructor Details
-
ChatGlmChatModel
-
-
Method Details
-
generate
Description copied from interface:ChatLanguageModel
Generates a response from the model based on a sequence of messages. Typically, the sequence contains messages in the following order: System (optional) - User - AI - User - AI - User ...- Specified by:
generate
in interfaceChatLanguageModel
- Parameters:
messages
- A list of messages.- Returns:
- The response generated by the model.
-
builder
-