C-Nedelcu / talk-to-chatgpt

Talk to ChatGPT AI using your voice and listen to its answers through a voice
GNU Affero General Public License v3.0
1.97k stars 333 forks source link

When speaking is disabled you gonna send multiple messages hitting the throttiling #95

Open arctic-ita opened 1 year ago

arctic-ita commented 1 year ago

When the speaking is disabled, the plugin will continue to listen, sending new messages to the chat while ChatGTP is still writing its text out, hitting this error:

Only one message at a time. Please allow any other responses to complete before sending another message, or wait one minute.

After that the plugin no longer works, and you need to cycle the microphone icon to make it starting working again. Often the microphone gets disabled randomly and you need to "cycle" it, is there a way to resume the plugin automatically if something fails?

C-Nedelcu commented 1 year ago

The limits are imposed by ChatGPT, not my extension, so I would recommend simply following their suggestions. Wait until you get the full reply before sending something else?

The reason why the cycle breaks is that after sending a message, Talk-to-ChatGPT expects a response from ChatGPT so as to be read.

I'll see if I can find a way to detect errors. And in case of errors the cycle shouldn't break. Marking this as 'bug'