mistral_common.experimental.app.models
EngineBackend
OpenAIChatCompletionRequest(**data)
Bases: BaseModel
OpenAI chat completion request.
This class is used to parse the request body for the OpenAI chat completion endpoint.
Attributes:
Name | Type | Description |
---|---|---|
messages |
List[dict[str, Union[str, List[dict[str, Union[str, dict[str, Any]]]]]]]
|
The messages to use for the chat completion. |
tools |
Optional[List[dict[str, Any]]]
|
The tools to use for the chat completion. |
Note
This class accepts extra fields that are not validated.
Source code in .venv/lib/python3.13/site-packages/pydantic/main.py
drop_extra_fields()
Drop extra fields from the model.
This method is used to drop extra fields from the model, which are not defined in the model fields.
Returns:
Type | Description |
---|---|
dict[str, Any]
|
The extra fields that were dropped from the model. |
Source code in src/mistral_common/experimental/app/models.py
Settings
Bases: BaseSettings
Settings for the Mistral-common API.
Attributes:
Name | Type | Description |
---|---|---|
app_name |
str
|
The name of the application. |
app_version |
str
|
The version of the application. |
engine_url |
str
|
The URL of the engine. |
engine_backend |
EngineBackend
|
The backend to use for the engine. |
timeout |
int
|
The timeout to use for the engine API. |