Cerlancism / chatgpt-subtitle-translator

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

help me plz #21

Closed saturndec closed 7 months ago

saturndec commented 7 months ago

I have filled in the API and url, and clicking translate works fine too. However, the translated content is exactly the same as the original text without any difference. Why is this? Please help me, thank you very much.

saturndec commented 7 months ago

I am using the provided web page.

Cerlancism commented 7 months ago

Screenshot? From which language to which language? Can provide the input file if you can.

saturndec commented 7 months ago

微信截图_20240308185653 I'm using the default text, translating from Japanese to English. Did I set something wrong? The other texts I uploaded also have this reaction. I feel like I've made a basic mistake😢

Cerlancism commented 7 months ago

I have not used the custom OpenAI base URL provider before, but what I see from its docs at https://docs.openkey.cloud/api/model-chat, it can be:

https://openkey.cloud/v1

Append /v1 at the end of https://openkey.cloud

saturndec commented 7 months ago

Many thanks! I switched to the official OpenAI API and it works normally now. I think there must have been a problem with the original API. Thank you for your answer!🤞🤞🤞

Cerlancism commented 7 months ago

Ok. Though I think the custom endpoint should also work if add the v1 behind.

saturndec commented 7 months ago

I just tried again, it seems to be of no use, I'm not sure what the situation is. However, the problem has been resolved now, thank you.🙏