Class HuggingFaceChatModel
java.lang.Object
dev.langchain4j.model.huggingface.HuggingFaceChatModel
- All Implemented Interfaces:
dev.langchain4j.model.chat.ChatModel
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionHuggingFaceChatModel
(String baseUrl, String accessToken, String modelId, Duration timeout, Double temperature, Integer maxNewTokens, Boolean returnFullText, Boolean waitForModel) HuggingFaceChatModel
(String accessToken, String modelId, Duration timeout, Double temperature, Integer maxNewTokens, Boolean returnFullText, Boolean waitForModel) -
Method Summary
Modifier and TypeMethodDescriptionstatic HuggingFaceChatModel.Builder
builder()
dev.langchain4j.model.chat.response.ChatResponse
chat
(dev.langchain4j.model.chat.request.ChatRequest chatRequest) 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.ChatModel
chat, chat, chat, defaultRequestParameters, doChat, listeners, provider, supportedCapabilities
-
Constructor Details
-
HuggingFaceChatModel
-
HuggingFaceChatModel
-
HuggingFaceChatModel
-
-
Method Details
-
chat
public dev.langchain4j.model.chat.response.ChatResponse chat(dev.langchain4j.model.chat.request.ChatRequest chatRequest) - Specified by:
chat
in interfacedev.langchain4j.model.chat.ChatModel
-
builder
-
withAccessToken
-