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
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
The text was updated successfully, but these errors were encountered:
Confirm this is a Node library issue and not an underlying OpenAI API issue
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 needend/finish
method.To Reproduce
The example code actually not work if use
{ tool_choice: "required" }
? It seemsawait runner.finalFunctionCall()
would just throw Error, and all async methods (eg.finalXXX
andtotalUsage
) will throw error anyway after aborted.Code snippets
No response
OS
macOS
Node version
Node 22
Library version
4.55.7
The text was updated successfully, but these errors were encountered: