fix ci/cd

This commit is contained in:
koalazf.99
2025-08-20 23:38:02 +08:00
parent 16a1acfea5
commit 409cef0c1d

View File

@@ -1283,7 +1283,7 @@ export class OpenAIContentGenerator implements ContentGenerator {
// Check if we already have a complete JSON object // Check if we already have a complete JSON object
const currentArgs = accumulatedCall.arguments; const currentArgs = accumulatedCall.arguments;
const newArgs = toolCall.function.arguments; const newArgs = toolCall.function.arguments;
// If current arguments already form a complete JSON and new arguments start a new object, // 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 // this indicates a new tool call with the same name
let shouldReset = false; let shouldReset = false;
@@ -1297,7 +1297,7 @@ export class OpenAIContentGenerator implements ContentGenerator {
// Current arguments are not complete JSON, continue accumulating // Current arguments are not complete JSON, continue accumulating
} }
} }
if (shouldReset) { if (shouldReset) {
accumulatedCall.arguments = newArgs; accumulatedCall.arguments = newArgs;
} else { } else {