mistral_common.base
MistralBase(**data)
Bases: BaseModel
Base class for all Mistral Pydantic models.
Forbids extra attributes, validates default values and use enum values.
Source code in pydantic/main.py
model_validate_ignore_extra(data)
classmethod
Build the model from the data after filtering out keys not in the model fields.
Unlike model_validate, does not raise on unknown keys; they are
silently dropped.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict[str, Any]
|
The dictionary to validate. |
required |
Returns:
| Type | Description |
|---|---|
Self
|
The validated model instance. |