Functions VS Tools - What is the difference?

+1

I’m seeing discrepancies abound:

Their python SDK cookbook was changed 9 hours ago from "role": "tool" to "role": "function"

However their node readme.md code (which we’re using) leverages "role": "tool"

Meanwhile their docs also use "role: "tool", so I guess the cookbook update is throwing me off:

Finally their completions.ts ChatCompletionToolMessageParam lacks a “name” attribute, which is present in the examples in their node repo

Wooo innovation :joy:

2 Likes