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
}elseif(Array.isArray(accValue)&&Array.isArray(deltaValue)){if(accValue.every(x=>typeofx==="string"||typeofx==="number")){accValue.push(...deltaValue);// Use spread syntax for efficient additioncontinue;// new code below}elseif(deltaValue.every(x=>isObj(x)&&x.hasOwnProperty("index")&&typeofx.index==="number")){for(leti=0;i<deltaValue.length;i++){constindex=deltaValue[i].index;accValue[index]=this.accumulateDelta(accValue[index],deltaValue[i]);}continue;}// end of new code}
To Reproduce
Any streamed tool call with arguments will do. Notice how the argument field is empty in the toolCall parameter from the event "toolCallDone"
Code snippets
No response
OS
Linux
Node version
Node v20.11.1
Library version
openai v4.34.0
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
Say we have a delta like
You're missing functionality here:
https://github.com/openai/openai-node/blob/116e38aae33a2d7b88c27d783a95b41e56500600/src/lib/AssistantStream.ts#L686C1-L691C8
I recommend adding something like
To Reproduce
Any streamed tool call with arguments will do. Notice how the
argument
field is empty in the toolCall parameter from the event "toolCallDone"Code snippets
No response
OS
Linux
Node version
Node v20.11.1
Library version
openai v4.34.0
The text was updated successfully, but these errors were encountered: