Cerlancism / chatgpt-subtitle-translator

Efficient translation tool based on ChatGPT API
https://cerlancism.github.io/chatgpt-subtitle-translator/
MIT License
145 stars 16 forks source link

Web interface fails to translate #15

Closed stulluk closed 5 months ago

stulluk commented 5 months ago

image

Here is my srt file: outfile3.zip

Any suggestions? ( I also tried "use moderator")

Cerlancism commented 5 months ago

Try to open the browser inspector -> console and take the screenshot of the error details from there.

Meanwhile I would fix the error display.

Cerlancism commented 5 months ago

Any updates? Are you on free tier? I think most likely it is rate limit issue.

stulluk commented 5 months ago

Yes, I am on free tier, do we need a paid plan to use this?

Here is updated error status:

subtrans-error

2024-02-03-10-42-20

2024-02-03-10-42-39

Cerlancism commented 5 months ago

You can use this tool with free tier. I will implement rate limit options at the UI. You have to set it according to https://platform.openai.com/docs/guides/rate-limits/free-tier-rate-limits

However, this will only scoped to request per minute (3 RPM as of now), if you hit the day limit (which is 200 RPD), you have wait for the next day.

stulluk commented 5 months ago

Thank you for your kind and quick response. If I understand correctly, I have to wait for you to implement this "rate limit option selection in the UI".

Please ping me here when you updated it. I will retry again.

Also, it would be great to document this in the README for the end-users like me to avoid future issues.

Cerlancism commented 5 months ago

@stulluk I have implemented rate limit controls at UI. You can set it to the lowest value 1 and turn off moderator.

If you still hit quota error, you may have hit the RPD, which you have wait for next day.

stulluk commented 5 months ago

@Cerlancism

image

Would it be possible for you to create a free account like me and try to translate above SRT file that I shared above ?

Cerlancism commented 5 months ago

I just took a closer look at your screenshot at

https://github.com/Cerlancism/chatgpt-subtitle-translator/issues/15#issuecomment-1925201128

Unfortunately your free credits already expired last year at Apr 01 2023. You have to use a paid plan now.

stulluk commented 5 months ago

@Cerlancism thank you for clarifying. we can close the issue then.

Cerlancism commented 5 months ago

You are welcome! Thanks for trying out the application.