Class HuggingFaceLanguageModel
java.lang.Object
dev.langchain4j.model.huggingface.HuggingFaceLanguageModel
- All Implemented Interfaces:
LanguageModel
@Deprecated(forRemoval=true,
since="1.7.0-beta13")
public class HuggingFaceLanguageModel
extends Object
implements LanguageModel
Deprecated, for removal: This API element is subject to removal in a future version.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.HuggingFaceLanguageModel
(String baseUrl, String accessToken, String modelId, Duration timeout, Double temperature, Integer maxNewTokens, Boolean returnFullText, Boolean waitForModel) Deprecated, for removal: This API element is subject to removal in a future version.HuggingFaceLanguageModel
(String accessToken, String modelId, Duration timeout, Double temperature, Integer maxNewTokens, Boolean returnFullText, Boolean waitForModel) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Generate a response to the given prompt.static HuggingFaceLanguageModel
withAccessToken
(String accessToken) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface LanguageModel
generate
-
Constructor Details
-
HuggingFaceLanguageModel
-
HuggingFaceLanguageModel
-
HuggingFaceLanguageModel
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
generate
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version. -
withAccessToken
Deprecated, for removal: This API element is subject to removal in a future version.
-
OpenAiChatModel
from thelangchain4j-open-ai
module instead: