Skip to content

Commit

Permalink
State change after API key check
Browse files Browse the repository at this point in the history
  • Loading branch information
szczyglis-dev committed Nov 21, 2024
1 parent 9e7feeb commit cd46068
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pygpt_net/controller/chat/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,6 @@ def execute(

self.log("Begin.")
self.generating = True # set generating flag
# set state to: busy
self.window.dispatch(KernelEvent(KernelEvent.STATE_BUSY, {
"id": "chat",
}))

mode = self.window.core.config.get('mode')
if mode == 'assistant':
Expand Down Expand Up @@ -220,6 +216,10 @@ def execute(
self.window.stateChanged.emit(self.window.STATE_ERROR)
return

# set state to: busy
self.window.dispatch(KernelEvent(KernelEvent.STATE_BUSY, {
"id": "chat",
}))
self.window.update_status(trans('status.sending'))

# clear input field if clear-on-send is enabled
Expand Down

0 comments on commit cd46068

Please sign in to comment.