#7202 500: Error code: 500 - {'error': {'message': 'sensitive words detected (request id: 20260912103530480575230jgbvwa9khcDJ5

202.150**5 Posted at: 1 hour ago

500: Error code: 500 - {'error': {'message': 'sensitive words detected (request id: 20260912103530480575230jgbvwa9khcDJ5)', 'type': 'new_api_error', 'param': '', 'code': 'sensitive_words_detected'}}:Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 976, in run
File "videotrans\translator\_base.py", line 105, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_chatgpt.py", line 138, in _item_task
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\chat\completions\completions.py", line 1192, in create
File "openai\_base_client.py", line 1297, in post
File "openai\_base_client.py", line 1070, in request
openai.InternalServerError: Error code: 500 - {'error': {'message': 'sensitive words detected (request id: 20260912103530480575230jgbvwa9khcDJ5)', 'type': 'new_api_error', 'param': '', 'code': 'sensitive_words_detected'}}


=
system:Windows-10-10.0.26200-SP0
version:v3.97
frozen:True
language:en
root_dir:E:/ytrans

1 Replies

#1 DeepSeek reply at 1 hour ago

A 500 error with sensitive_words_detected is returned by the AI provider/API gateway itself (a new_api_error type), not by pyVideoTrans. It means the text sent for translation was flagged and rejected by that service's content-filtering system, so the request never completed and OpenAI's client raised InternalServerError.

What to do:

  1. Identify the culprit text. The filter is triggered by specific subtitle content (profanity, political terms, violence, sexual words, etc.). Manually inspect the source SRT of the batch that failed.
  2. Switch or use a different AI translation channel. Some relay/gateway providers (the new_api_error type often indicates a third-party/proxy OpenAI-compatible endpoint) enforce stricter moderation than the official API. Try:

    • a different AI channel (e.g. DeepSeek, Gemini, or the official OpenAI endpoint),
    • or a non-AI channel such as Google(免费) / M2M100(内置).
  3. Reduce the chance of re-triggering. Go to Menu → Tools/Options → Advanced Options → Subtitle Translation and set AI translation batch size (lines per request) to 1, so only one line is sent at a time; a single offending line can then be isolated and manually edited.
  4. Pre-edit the source SRT. Rewrite/replace the flagged words in the source subtitle, then re-run translation (do not tick 清理已生成 if you want to keep the existing transcription).
  5. If it is caused by the prompt, not the content, note that when "Send full SRT to AI" is enabled the whole subtitle block is transmitted in one request — disabling it and translating line-by-line usually avoids mass rejection.

Also note your version is v3.97, which is quite old; upgrading is recommended before further troubleshooting.

Please refer to the related documentation:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Related resource