-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation
Description
Confirm this is a Node library issue and not an underlying OpenAI API issue
- This is an issue with the Node library
Describe the bug
Current doc "Abort on a function call" is confusing.
In general, I think use abort
is not a good thing, we actually need end/finish
method.
To Reproduce
The example code actually not work if use { tool_choice: "required" }
? It seems await runner.finalFunctionCall()
would just throw Error, and all async methods (eg. finalXXX
and totalUsage
) will throw error anyway after aborted.
Code snippets
No response
OS
macOS
Node version
Node 22
Library version
4.55.7
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation