SubtitleEdit / subtitleedit

the subtitle editor :)
http://www.nikse.dk/SubtitleEdit/Help
GNU General Public License v3.0
8.23k stars 887 forks source link

ERRO while, Auto-Translation: ChatGpt API #8657

Closed addamss closed 1 month ago

addamss commented 1 month ago

Can u help me with this error while trying translate with chatgpt API? Cap

niksedk commented 1 month ago

Please supply the whole error text... you can copy-paste the error text.

addamss commented 1 month ago

Response status code does not indicate success: 400 (Bad Request). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at Nikse.SubtitleEdit.Core.AutoTranslate.ChatGptTranslate.d19.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.d4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Nikse.SubtitleEdit.Forms.Translate.AutoTranslate.d__33.MoveNext() { "error": { "message": "You must provide the 'OpenAI-Beta' header to access the Assistants API. Please try again by setting the header 'OpenAI-Beta: assistants=v2'.", "type": "invalid_request_error", "param": null, "code": "invalid_beta" } }

niksedk commented 1 month ago

It works fine here... what model are you using?