:boom: [Fix] Execute stop workflow when requester finished
Browse files
components/buttons_binder.js
CHANGED
@@ -93,7 +93,10 @@ class SendUserInputButtonBinder {
|
|
93 |
this.requester = new ChatCompletionsRequester(user_input_content);
|
94 |
this.requester.create_messager_components();
|
95 |
start_latest_message_animation();
|
96 |
-
this.requester.post();
|
|
|
|
|
|
|
97 |
}
|
98 |
}
|
99 |
|
|
|
93 |
this.requester = new ChatCompletionsRequester(user_input_content);
|
94 |
this.requester.create_messager_components();
|
95 |
start_latest_message_animation();
|
96 |
+
let requester_post = this.requester.post();
|
97 |
+
requester_post.then(() => {
|
98 |
+
this.stop(button);
|
99 |
+
});
|
100 |
}
|
101 |
}
|
102 |
|