mistral[patch]: Propagate tool call id (#28238)

mistralai-large-2411 requires tool call id

Older models accept tool call id if its provided

mistral-large-2407 
mistral-large-2402
This commit is contained in:
Eugene Yurtsev 2024-11-20 17:02:30 -05:00 committed by GitHub
parent dee72c46c1
commit 1a66175e38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -353,6 +353,7 @@ def _convert_message_to_mistral_chat_message(
"role": "tool",
"content": message.content,
"name": message.name,
"tool_call_id": message.tool_call_id,
}
else:
raise ValueError(f"Got unknown type {message}")