mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 09:17:53 +00:00
fix ci/cd
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user