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
Add conveniences to facilitate function calling when using chat completions and assistants. For example, the official OpenAI JavaScript library offers a runTools({...}) convenience helper which automatically calls the JavaScript functions you provide and sends their results back to the /chat/completions endpoint, looping as long as the model requests tool calls (🔗 [[link]].(https://github.com/openai/openai-node?tab=readme-ov-file#automated-function-calls))
joseharriaga
changed the title
[OpenAI] [Scenario] [Chat] [Assistants] Add conveniences for function calling
[OpenAI] [Scenario] Add conveniences for function calling
Mar 7, 2024
Add conveniences to facilitate function calling when using chat completions and assistants. For example, the official OpenAI JavaScript library offers a
runTools({...})
convenience helper which automatically calls the JavaScript functions you provide and sends their results back to the/chat/completions
endpoint, looping as long as the model requests tool calls (🔗 [[link]].(https://github.com/openai/openai-node?tab=readme-ov-file#automated-function-calls))More info about function calling:
Chat completions: 🔗 https://platform.openai.com/docs/guides/function-calling
Assistants: 🔗 https://platform.openai.com/docs/assistants/tools/function-calling
The text was updated successfully, but these errors were encountered: