_handle_tool_call_message linting
All checks were successful
Read Version from pyproject.toml / read-version (push) Successful in 13s

This commit is contained in:
Ishaan Jaff 2025-01-16 22:34:16 -08:00
parent c8febaca2e
commit 15e0a605e4

View file

@ -200,7 +200,7 @@ class MistralConfig(OpenAIGPTConfig):
"""
_tool_calls = message.get("tool_calls")
mistral_tool_calls: List[MistralToolCallMessage] = []
if _tool_calls is not None:
if _tool_calls is not None and isinstance(_tool_calls, list):
for _tool in _tool_calls:
_tool_call_message = MistralToolCallMessage(
id=_tool.get("id"),