Class MistralAiFimModel
java.lang.Object
dev.langchain4j.model.mistralai.MistralAiFimModel
- All Implemented Interfaces:
dev.langchain4j.model.language.LanguageModel
public class MistralAiFimModel
extends Object
implements dev.langchain4j.model.language.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
Modifier and TypeMethodDescriptionstatic MistralAiFimModel.Builderbuilder()dev.langchain4j.model.output.Response<String> Generates a completion for the given prompt.dev.langchain4j.model.output.Response<String> Generates a completion for the given prompt and suffix.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
generatein interfacedev.langchain4j.model.language.LanguageModel- Parameters:
prompt- the starting point of the text/code- Returns:
- a response containing the generated text/code
-
builder
-