deep-chat icon indicating copy to clipboard operation
deep-chat copied to clipboard

The retry mechanism for uploading voice files.

Open delsoul6104 opened this issue 10 months ago • 3 comments

If I upload a voice file to the backend service and the upload is interrupted due to network issues, is there a retry mechanism in place?

delsoul6104 avatar Jan 14 '25 08:01 delsoul6104

Hi @delsoul6104.

There are no retry mechanisms for sending any message content to the server.

The reason for this is because if something does go wrong when data is being sent - it carries low severity, hence the user is free to retry again and they are fully aware that there is some sort of a problem with the backend.

You can also observer that ChatGPT (to-date) also does not have a retry mechanism - potentially due to the same reason.

May I ask, what motivated you to raise this issue? Thanks!

OvidijusParsiunas avatar Jan 14 '25 12:01 OvidijusParsiunas

Hi @delsoul6104.

There are no retry mechanisms for sending any message content to the server.

The reason for this is because if something does go wrong when data is being sent - it carries low severity, hence the user is free to retry again and they are fully aware that there is some sort of a problem with the backend.

You can also observer that ChatGPT (to-date) also does not have a retry mechanism - potentially due to the same reason.

May I ask, what motivated you to raise this issue? Thanks! hi @OvidijusParsiunas

When I start recording with the microphone and send it to a custom backend service via DeepChat, if a network error occurs during the JS XHR request, the recording just made becomes invalid, and I need to record again.

delsoul6104 avatar Jan 15 '25 06:01 delsoul6104

Ok, that seems to be quite serious. I am currently working on another feature right now, but I will try to find a way to retain the recordings as soon as I get time. I will update you when I have come up with a fix.

OvidijusParsiunas avatar Jan 15 '25 11:01 OvidijusParsiunas

The functionality to allow the user to re-upload the previous message's files has been added to deep-chat-dev and deep-chat-react-dev versions 9.0.262. These packages work exactly the same way as the original ones except their names are different.

I will keep this issue open until the change has been merged to the original packages. Thankyou!

OvidijusParsiunas avatar May 11 '25 10:05 OvidijusParsiunas

This is now fixed in deep-chat and deep-chat-react version 2.2.1. See release notes for more information. Thankyou!

OvidijusParsiunas avatar May 12 '25 12:05 OvidijusParsiunas