Package dev.langchain4j.model.jlama
Class JlamaLanguageModel
java.lang.Object
dev.langchain4j.model.jlama.JlamaLanguageModel
- All Implemented Interfaces:
LanguageModel
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Generate a response to the given prompt.static FinishReason
toFinishReason
(com.github.tjake.jlama.model.functions.Generator.FinishReason reason) 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
-
JlamaLanguageModel
-
-
Method Details
-
toFinishReason
public static FinishReason toFinishReason(com.github.tjake.jlama.model.functions.Generator.FinishReason reason) -
builder
-
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.
-