Skip to content

Commit

Permalink
mistral[patch]: Propagate tool call id (#28238)
Browse files Browse the repository at this point in the history
mistralai-large-2411 requires tool call id

Older models accept tool call id if its provided

mistral-large-2407 
mistral-large-2402
  • Loading branch information
eyurtsev authored Nov 20, 2024
1 parent dee72c4 commit 1a66175
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/partners/mistralai/langchain_mistralai/chat_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 1a66175

Please sign in to comment.