mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
fix(factory.py): handle special keys for mistral chat template
This commit is contained in:
parent
c3ac6b098e
commit
528741a809
1 changed files with 1 additions and 1 deletions
|
|
@ -235,7 +235,7 @@ def mistral_api_pt(messages):
|
|||
"""
|
||||
new_messages = []
|
||||
for m in messages:
|
||||
special_keys = ["role", "content", "tool_calls"]
|
||||
special_keys = ["role", "content", "tool_calls", "function_call"]
|
||||
extra_args = {}
|
||||
if isinstance(m, dict):
|
||||
for k, v in m.items():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue