This commit is contained in:
koalazf.99
2025-08-14 19:16:40 +08:00
parent f9d3fe6fad
commit 04415bd19d

View File

@@ -351,7 +351,6 @@ export class OpenAIContentGenerator implements ContentGenerator {
);
}
// console.log('createParams', createParams);
const stream = (await this.client.chat.completions.create(
@@ -1308,7 +1307,9 @@ export class OpenAIContentGenerator implements ContentGenerator {
parts.push({
functionCall: {
id: accumulatedCall.id || `call_${Date.now()}_${Math.random().toString(36).substring(2, 9)}`,
id:
accumulatedCall.id ||
`call_${Date.now()}_${Math.random().toString(36).substring(2, 9)}`,
name: accumulatedCall.name,
args,
},