Package dev.langchain4j.model.mistralai
Class MistralAiFimModel
java.lang.Object
dev.langchain4j.model.mistralai.MistralAiFimModel
- All Implemented Interfaces:
LanguageModel
Represents a Mistral AI FIM Completion Model with a language completion interface, users can define the starting point of the text/code using a prompt, and the ending point of the text/code using an optional suffix and an optional stop.
This model will then generate the text/code that fits in between.
You can find description of parameters here.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
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
-
MistralAiFimModel
-
-
Method Details
-
generate
Generates a completion for the given prompt and suffix.- Parameters:
prompt
- the starting point of the text/codesuffix
- Optional text/code that adds more context for the model. When given a prompt and a suffix the model will fill what is between them.- Returns:
- a response containing the generated text/code
-
generate
Generates a completion for the given prompt.- Specified by:
generate
in interfaceLanguageModel
- Parameters:
prompt
- the starting point of the text/code- Returns:
- a response containing the generated text/code
-
builder
-