Skip to content

Commit 3738ed2

Browse files
committed
update with correct type
1 parent 2c0164a commit 3738ed2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/utils/openai/streaming.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)