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
Error in the streaming of response: OpenAIError: missing finish_reason for choice... at finalizeChatCompletion ... at ChatCompletionStream._ChatCompletionStream_endRequest.....at ChatCompletionStream._createChatCompletion.... at process.processTicksAndRejections..... at async ChatCompletionStream._runChatCompletion....node_modules/openai/lib/AbstractChatCompletionRunner.js:135:16
Code snippets
No response
OS
macOS
Node version
node 18
Library version
4.73.1
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
gpt-4o-audio-preview streamed final return chunk doesn't contain
finish_reason
and the finalizeChatCompletion method cannot handle it properlySee how the final only has an expires_at and doesn't have a
finish_reason
To Reproduce
throw error
Code snippets
No response
OS
macOS
Node version
node 18
Library version
4.73.1
The text was updated successfully, but these errors were encountered: