You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To follow OpenAI spec (and what other open source models, e.g. llama3.1), expect for Assistant messages with tool calls, messages should look like this
The issue is that certain common open-source Jinja chat_templates expect a non-serialised JSON object for tool_calls fields when converting RequestMessages to an unstructured string.
Describe the bug
In mistral.rs, we JSON string the full
"tool_calls"
value, e.g.mistral.rs/mistralrs/examples/lower_level/tools/main.rs
Lines 127 to 139 in b6b722e
In fact, MessageContent only supports String values.
This restricts the ability to feed the result of tool calls back to various models
Also value should be
"arguments"
and not"parameters"
(parameters is used in JSONSchema fortools
key.The text was updated successfully, but these errors were encountered: