mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-20 13:54:48 +00:00
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:
parent
dee72c46c1
commit
1a66175e38
@ -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}")
|
||||
|
Loading…
Reference in New Issue
Block a user