mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-17 08:54:19 +08:00
调整quickcommand.askAI接口,改为通过onFetch返回controller
This commit is contained in:
@@ -201,8 +201,10 @@ export default defineComponent({
|
||||
this.selectedApi,
|
||||
{
|
||||
showProcessBar: false,
|
||||
onStream: (text, controller, done) => {
|
||||
onFetch: (controller) => {
|
||||
this.currentRequest = controller;
|
||||
},
|
||||
onStream: (text, done) => {
|
||||
if (text) {
|
||||
this.chatHistory[this.chatHistory.length - 1].content += text;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user