Class HuggingFaceChatModel
java.lang.Object
dev.langchain4j.model.huggingface.HuggingFaceChatModel
- All Implemented Interfaces:
ChatLanguageModel
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HuggingFaceChatModel.Builder
builder()
generate
(List<ChatMessage> messages) Generates a response from the model based on a sequence of messages.static HuggingFaceChatModel
withAccessToken
(String accessToken) 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
-
HuggingFaceChatModel
-
HuggingFaceChatModel
-
-
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
-
withAccessToken
-