#4449 TaskCfgSTS(is_cuda=False, uuid='2b997e9206', cache_folder=None, target_dir='/Users/nhu/Downloads', source_language=None,

2405:4802* Posted at: 1 hour ago 👁9

Trans Error [OpenAI ChatGPT] [OpenAIChatGPT]failed:ChatCompletion(id='resp_03b4e5950a3011410169fb18c687c08191bdea205bb83a05ce', choices=[Choice(finish_reason='failed', index=0, logprobs=None, message=ChatCompletionMessage(content='', refusal=None, role='assistant', annotations=None, audio=None, function_call=None, tool_calls=None))], created=1778063558, model='gpt-5.5', object='chat.completion', service_tier=None, system_fingerprint=None, usage=CompletionUsage(completion_tokens=0, prompt_tokens=0, total_tokens=0, completion_tokens_details=None, prompt_tokens_details=None))
Traceback (most recent call last):
File "/Users/nhu/Desktop/ProjectX/pyvideotrans/videotrans/translator/_base.py", line 97, in run

return self._run_srt(split_source_text)

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/videotrans/translator/_base.py", line 161, in _run_srt

result = self._item_task(srt_str)

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 338, in wrapped_f

return copy(f, *args, **kw)

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 477, in call

do = self.iter(retry_state=retry_state)

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 378, in iter

result = action(retry_state)

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 421, in exc_check

raise retry_exc from fut.exception()

tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/nhu/Desktop/ProjectX/pyvideotrans/videotrans/task/job.py", line 173, in run

trk.trans()

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/videotrans/task/_translate_srt.py", line 44, in trans

raw_subtitles = run(

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/videotrans/translator/__init__.py", line 1008, in run

return ChatGPT(**kwargs).run()

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/videotrans/translator/_base.py", line 100, in run

raise e.last_attempt.exception()

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 480, in call

result = fn(*args, **kwargs)

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/videotrans/translator/_chatgpt.py", line 153, in _item_task

raise RuntimeError(f"[OpenAIChatGPT]{response.choices[0].finish_reason}:{response}")

RuntimeError: [OpenAIChatGPT]failed:ChatCompletion(id='resp_03b4e5950a3011410169fb18c687c08191bdea205bb83a05ce', choices=[Choice(finish_reason='failed', index=0, logprobs=None, message=ChatCompletionMessage(content='', refusal=None, role='assistant', annotations=None, audio=None, function_call=None, tool_calls=None))], created=1778063558, model='gpt-5.5', object='chat.completion', service_tier=None, system_fingerprint=None, usage=CompletionUsage(completion_tokens=0, prompt_tokens=0, total_tokens=0, completion_tokens_details=None, prompt_tokens_details=None))
TaskCfgSTS(is_cuda=False, uuid='2b997e9206', cache_folder=None, target_dir='/Users/nhu/Downloads', source_language=None, source_language_code='Simplified Chinese', source_sub='/Users/nhu/Downloads/Phimdai.zh-Hans-2.srt', source_wav=None, source_wav_output=None, target_language=None, target_language_code='Vietnamese', target_sub='/Users/nhu/Downloads/Phimdai.zh-Hans-2.Vietnamese.srt', target_wav=None, target_wav_output=None, name='/Users/nhu/Downloads/Phimdai.zh-Hans-2.srt', noextname='Phimdai.zh-Hans-2', basename='Phimdai.zh-Hans-2.srt', ext='srt', dirname='/Users/nhu/Downloads', shound_del_name=None, translate_type=3)


=
system:macOS-26.4.1-arm64-arm-64bit
version:v3.99
frozen:False
language:en
root_dir:/Users/nhu/Desktop/ProjectX/pyvideotrans
Python: 3.10.19 (main, Feb 12 2026, 00:36:33) [Clang 21.1.4 ]

1 Replies

The translation failed because the OpenAI-compatible API returned finish_reason='failed' with no content, meaning the model refused to process the request. The most common causes are:

  • Invalid model namegpt-5.5 is not a standard OpenAI model. The correct name might be gpt-4o, gpt-3.5-turbo, or another model from your provider.
  • API key issue – missing, invalid, insufficient quota, or missing access to the requested model.
  • Network / proxy – if you are in mainland China, a proxy is required to reach OpenAI; the proxy might be misconfigured or unstable.
  • Content safety filters – the input text may have triggered a filter on the API side.

Step-by-step fix:

  1. Verify the model name – Open Menu → Translate Settings → OpenAI / Compatible Interface, check the Model field and ensure it matches a model you have access to (e.g., gpt-4o, gpt-3.5-turbo). If using a third‑party service (DeepSeek, Groq, 302.AI, etc.), use the model name specified by that provider.
  2. Check API key and quota – In the same settings panel, confirm the API key is pasted correctly and has sufficient credits. Test the key with a simple curl command or the provider's dashboard.
  3. Enable or fix proxy – If you need a proxy, enter the correct address in the main‑window “Proxy” field (e.g., http://127.0.0.1:7890). If you do not need one, leave it empty.
  4. Simplify the request – Temporarily disable “Send full subtitles” in the main window (or in Menu → Advanced Options → Translation Adjustments) to reduce the prompt size and avoid potential filter triggers.
  5. Test with another channel – Switch to a different translation channel (e.g., DeepSeek, Google Translate) to confirm whether the problem is specific to OpenAI.
  6. Retry – After making changes, restart the translation task. The software retries several times, but a persistent failed status indicates an upstream issue that must be resolved on the API/account side.

If the error persists, copy the last 30 lines of the log file from logs/ in the software directory and provide them for further analysis.

请查阅相关文档:

Post Your Reply
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.

Related resource