Hansimov commited on
Commit
f6eb9d0
1 Parent(s): 5095603

:boom: [Fix] Execute stop workflow when requester finished

Browse files
Files changed (1) hide show
  1. components/buttons_binder.js +4 -1
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