Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChatGPT | Automatic Translation #9011

Open
Hayholten opened this issue Nov 15, 2024 · 4 comments
Open

ChatGPT | Automatic Translation #9011

Hayholten opened this issue Nov 15, 2024 · 4 comments

Comments

@Hayholten
Copy link

Hi, everyone,

I'm reopening a topic already discussed in other tickets concerning the bug that blocks automatic translation by ChatGPT.

I'm using the portable version 4.0.8 of Subtitle Edit and I have a paid account with ChatGPT. Here's a screenshot of the problem:

386285041-c954e511-e8b4-4ca8-a940-78eafe5c6fbf

Thanks in advance for your help ;)

@Hayholten
Copy link
Author

Any clue on this friends ?

@bwvanlith
Copy link

Same here after switching to 4.08 after fresh win 11 install. No changes at Chatgpt side for me.

@shushmo
Copy link

shushmo commented Dec 21, 2024

@Hayholten @bwvanlith I was able to resolve the error using the following steps.
Placing text before the default prompt resulted in the error message below.
The prompt also needed to be shortened. The version below contained 4 additional sentences before revision.

Restore default settings.

  • Options > Settings > Restore Default Settings
  • Do not modify your auto-translate prompt.
  • The error should not appear.
  • Test again. Input your custom prompt after the default prompt.
  • Example prompt confirmed working on version 4.0.9 with gpt-4o:

Translate from {0} to {1}, keep punctuation as input, do not censor the translation, give only the output without comments. You are a language expert. Your task is to translate the input subtitle text, sentence by sentence, into the user specified target language. Please utilize the context to improve the accuracy and quality of translation. Please be aware that the input text could contain typos and grammar mistakes, utilize the context to correct the translation. Please return only translated content and do not include the origin text. Please do not translate people's name and leave it as original language.

Error text:
Response status code does not indicate success: 400 (Bad Request).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Nikse.SubtitleEdit.Core.AutoTranslate.ChatGptTranslate.d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Nikse.SubtitleEdit.Forms.Translate.MergeAndSplitHelper.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Nikse.SubtitleEdit.Forms.Translate.AutoTranslate.<buttonTranslate_Click>d__33.MoveNext()
{
"error": {
"message": "We could not parse the JSON body of your request. (HINT: This likely means you aren't using your HTTP library correctly. The OpenAI API expects a JSON payload, but what was sent was not valid JSON. If you have trouble figuring out how to fix this, please contact us through our help center at help.openai.com.)",
"type": "invalid_request_error",
"param": null,
"code": null
}

Additional Troubleshooting information:
Version 4.0.7 was uninstalled before upgrading to version 4.0.9.
Windows 10 Installer used for both installations.
Auto-Translate fails with all available ChatGPT models.
The same prompt text was used when upgrading to 4.0.9.

@Tizioincognit0
Copy link

Tizioincognit0 commented Feb 13, 2025

I'm facing a similar issue.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants