I am confused regarding how to report the output of the tools. Before when using functions, the function name was part of the message. But for tools the documentation is not consistent.
Line 75, the use of “name” attribute, in
https://platform.openai.com/docs/guides/function-calling?lang=node.js
is not consistent with the request body documentation of the create chat completion for tool message in
https://platform.openai.com/docs/api-reference?lang=node.js
When I use the types of the nodejs lib "^4.17.5"
I am not allowed to add “name”.
However, it appears as if the assistant doesn’t understand the tool response, and I’m thinking it could have to do with the missing name.