feat(mistralai): support reasoning feature and v1 content (#33485)

Not yet supported: server-side tool calls
This commit is contained in:
ccurme
2025-10-14 15:19:44 -04:00
committed by GitHub
parent 99e0a60aab
commit 9f4366bc9d
4 changed files with 273 additions and 38 deletions

View File

@@ -188,6 +188,7 @@ def test__convert_dict_to_message_tool_call() -> None:
type="tool_call",
)
],
response_metadata={"model_provider": "mistralai"},
)
assert result == expected_output
assert _convert_message_to_mistral_chat_message(expected_output) == message
@@ -231,6 +232,7 @@ def test__convert_dict_to_message_tool_call() -> None:
type="tool_call",
),
],
response_metadata={"model_provider": "mistralai"},
)
assert result == expected_output
assert _convert_message_to_mistral_chat_message(expected_output) == message