Interface ChatModelConfig


public interface ChatModelConfig
  • Method Details

    • modelName

      @WithDefault("mistral-tiny") String modelName()
      Model name to use
    • temperature

      @ConfigDocDefault("0.7") OptionalDouble 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-k property but not both.

    • maxTokens

      OptionalInt maxTokens()
      The maximum number of tokens to generate in the completion.

      The token count of your prompt plus max_tokens cannot exceed the model's context length

    • topP

      @ConfigDocDefault("1.0") OptionalDouble 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 temperature property but not both.

    • safePrompt

      Optional<Boolean> 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