In your OpenAPI specification you specify msg in a ValidationError as string:
|
msg: |
|
type: string |
|
title: Message |
However, testing a lot of invalid requests to your https://api.mistral.ai/v1/chat/completions endpoint shows that msg can be also (or is always?) an array:
"message": {
"detail": [
{
"type": "float_type",
"loc": [
"body",
"top_p"
],
"msg": "Input should be a valid number",
"input": null
}
]
}, ...