File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/core/src/utils/openai Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ interface StreamingState {
5353 * Accumulated function calls from Responses API streaming.
5454 * @see https://platform.openai.com/docs/guides/function-calling?api-mode=responses#streaming
5555 */
56- responsesApiFunctionCalls : Array < ResponseFunctionCall > ;
56+ responsesApiFunctionCalls : Array < ResponseFunctionCall | unknown > ;
5757}
5858
5959/**
@@ -169,7 +169,7 @@ function processResponsesApiEvent(
169169 if ( recordOutputs ) {
170170 // Handle function call events for Responses API
171171 if ( event . type === 'response.output_item.done' && 'item' in event ) {
172- state . responsesApiFunctionCalls . push ( event . item as ResponseFunctionCall ) ;
172+ state . responsesApiFunctionCalls . push ( event . item as ResponseFunctionCall | unknown ) ;
173173 }
174174
175175 if ( event . type === 'response.output_text.delta' && 'delta' in event && event . delta ) {
You can’t perform that action at this time.
0 commit comments