mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 09:17:53 +00:00
tmp
This commit is contained in:
@@ -351,7 +351,6 @@ export class OpenAIContentGenerator implements ContentGenerator {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// console.log('createParams', createParams);
|
// console.log('createParams', createParams);
|
||||||
|
|
||||||
const stream = (await this.client.chat.completions.create(
|
const stream = (await this.client.chat.completions.create(
|
||||||
@@ -1308,7 +1307,9 @@ export class OpenAIContentGenerator implements ContentGenerator {
|
|||||||
|
|
||||||
parts.push({
|
parts.push({
|
||||||
functionCall: {
|
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,
|
name: accumulatedCall.name,
|
||||||
args,
|
args,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user