Example

Mistral Params

ParameterTypeDefaultDescription
idstr"mistral-large-latest"The ID of the model.
namestr"MistralChat"The name of the model.
providerstr"Mistral"The provider of the model.
temperatureOptional[float]NoneControls randomness in output generation.
max_tokensOptional[int]NoneMaximum number of tokens to generate.
top_pOptional[float]NoneControls diversity of output generation.
random_seedOptional[int]NoneSeed for random number generation.
safe_modeboolFalseEnables content filtering.
safe_promptboolFalseApplies content filtering to prompts.
response_formatOptional[Union[Dict[str, Any], ChatCompletionResponse]]NoneSpecifies the desired response format.
request_paramsOptional[Dict[str, Any]]NoneAdditional request parameters.
api_keyOptional[str]NoneYour Mistral API key.
endpointOptional[str]NoneCustom API endpoint URL.
max_retriesOptional[int]NoneMaximum number of API call retries.
timeoutOptional[int]NoneTimeout for API calls in seconds.
client_paramsOptional[Dict[str, Any]]NoneAdditional client parameters.
mistral_clientOptional[Mistral]NoneCustom Mistral client instance.

MistralChat is a subclass of the Model class and has access to the same params.