From 409cef0c1d3b80e44f26a2b44d3f3ba42da4166a Mon Sep 17 00:00:00 2001 From: "koalazf.99" Date: Wed, 20 Aug 2025 23:38:02 +0800 Subject: [PATCH] fix ci/cd --- packages/core/src/core/openaiContentGenerator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/core/openaiContentGenerator.ts b/packages/core/src/core/openaiContentGenerator.ts index 436673e3..27e94048 100644 --- a/packages/core/src/core/openaiContentGenerator.ts +++ b/packages/core/src/core/openaiContentGenerator.ts @@ -1283,7 +1283,7 @@ export class OpenAIContentGenerator implements ContentGenerator { // Check if we already have a complete JSON object const currentArgs = accumulatedCall.arguments; const newArgs = toolCall.function.arguments; - + // If current arguments already form a complete JSON and new arguments start a new object, // this indicates a new tool call with the same name let shouldReset = false; @@ -1297,7 +1297,7 @@ export class OpenAIContentGenerator implements ContentGenerator { // Current arguments are not complete JSON, continue accumulating } } - + if (shouldReset) { accumulatedCall.arguments = newArgs; } else {