Interface ChatModelConfig
public interface ChatModelConfig
-
Method Summary
Modifier and TypeMethodDescriptionWhether chat model requests should be loggedWhether chat model responses should be loggedThe maximum number of tokens to generate in the completion.Model name to useThe seed to use for random sampling.Whether to inject a safety prompt before all conversationsWhat sampling temperature to use, between 0.0 and 1.0.topP()Double (0.0-1.0).
-
Method Details
-
modelName
Model name to use -
temperature
What sampling temperature to use, between 0.0 and 1.0. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.It is generally recommended to set this or the
top-kproperty but not both. -
maxTokens
OptionalInt maxTokens()The maximum number of tokens to generate in the completion.The token count of your prompt plus
max_tokenscannot exceed the model's context length -
topP
Double (0.0-1.0). Nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.It is generally recommended to set this or the
temperatureproperty but not both. -
safePrompt
Whether to inject a safety prompt before all conversations -
randomSeed
OptionalInt randomSeed()The seed to use for random sampling. If set, different calls will generate deterministic results. -
logRequests
@ConfigDocDefault("false") @WithDefault("${quarkus.langchain4j.mistralai.log-requests}") Optional<Boolean> logRequests()Whether chat model requests should be logged -
logResponses
@ConfigDocDefault("false") @WithDefault("${quarkus.langchain4j.mistralai.log-responses}") Optional<Boolean> logResponses()Whether chat model responses should be logged
-