mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: stream模式下function_all参数问题
This commit is contained in:
parent
b35a2a9999
commit
db24de9ae3
2 changed files with 2 additions and 2 deletions
|
|
@ -225,7 +225,7 @@ var ChatGPTAPI = /** @class */ (function () {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
result.functionCall.arguments = result.functionCall.arguments || '' + delta.function_call.arguments;
|
result.functionCall.arguments = (result.functionCall.arguments || '') + delta.function_call.arguments;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
|
|
@ -243,7 +243,7 @@ export class ChatGPTAPI {
|
||||||
arguments: delta.function_call.arguments
|
arguments: delta.function_call.arguments
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
result.functionCall.arguments = result.functionCall.arguments || '' + delta.function_call.arguments
|
result.functionCall.arguments = (result.functionCall.arguments || '') + delta.function_call.arguments
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue