mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
_handle_tool_call_message linting
All checks were successful
Read Version from pyproject.toml / read-version (push) Successful in 13s
All checks were successful
Read Version from pyproject.toml / read-version (push) Successful in 13s
This commit is contained in:
parent
c8febaca2e
commit
15e0a605e4
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ class MistralConfig(OpenAIGPTConfig):
|
||||||
"""
|
"""
|
||||||
_tool_calls = message.get("tool_calls")
|
_tool_calls = message.get("tool_calls")
|
||||||
mistral_tool_calls: List[MistralToolCallMessage] = []
|
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:
|
for _tool in _tool_calls:
|
||||||
_tool_call_message = MistralToolCallMessage(
|
_tool_call_message = MistralToolCallMessage(
|
||||||
id=_tool.get("id"),
|
id=_tool.get("id"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue