Open
Description
Doc request
On the chat template documentation, on the Tools section, there is missing information of how to trigger the function.
Tools and RAG
Here, before calling the model to read the chat template:
tool_call = {"name": "get_current_temperature", "arguments": {"location": "Paris, France", "unit": "celsius"}}
messages.append({"role": "assistant", "tool_calls": [{"type": "function", "function": tool_call}]})
# missing line:
messages.append({"role": "tool", "name": "get_current_temperature", "content": "22.0"})
I had to go to the Hermes 2 model in order to make the "call" of the function.
Additional context
They have a Jupyter Notebook on their Github that uses Function Calling implementation. Link
Here, they don't hardcode the tool_call
and message.append()
, instead they do it dynamically.
Metadata
Metadata
Assignees
Labels
No labels