Class HuggingFaceLanguageModel
java.lang.Object
dev.langchain4j.model.huggingface.HuggingFaceLanguageModel
- All Implemented Interfaces:
LanguageModel
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Generate a response to the given prompt.static HuggingFaceLanguageModel
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.language.LanguageModel
generate
-
Constructor Details
-
HuggingFaceLanguageModel
-
HuggingFaceLanguageModel
-
-
Method Details
-
generate
Description copied from interface:LanguageModel
Generate a response to the given prompt.- Specified by:
generate
in interfaceLanguageModel
- Parameters:
prompt
- the prompt.- Returns:
- the response.
-
builder
-
withAccessToken
-