[INFO] Finished call to 'videotrans.translator._openaicompat.OpenAICampat.llm_segment.._send' after 4.234(s), this was the 1st time calling it.
[INFO] Starting call to 'videotrans.translator._openaicompat.OpenAICampat.llm_segment.._send', this is the 2nd time calling it.
[INFO] Finished call to 'videotrans.translator._openaicompat.OpenAICampat.llm_segment.._send' after 13.328(s), this was the 2nd time calling it.
[ERROR] 重新断句失败,已恢复原样 RetryError[]
Traceback (most recent call last):
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_openaicompat.py", line 131, in _send
File "openai\_utils\_utils.py", line 298, in wrapper
File "openai\resources\chat\completions\completions.py", line 1215, in create
File "openai\_base_client.py", line 1332, in post
File "openai\_base_client.py", line 1105, in request
openai.RateLimitError: Error code: 429 - {'error': {'message': 'max_tokens is too large: 65536. This model supports at most 32768 completion tokens, whereas you provided 65536. (request id: 2026060518175295128127470wO0u6r)', 'type': 'invalid_request_error', 'param': 'max_tokens', 'code': 'invalid_value'}}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "videotrans\task\trans_create.py", line 390, in recogn
File "videotrans\translator\_openaicompat.py", line 158, in llm_segment
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 421, in exc_check
tenacity.RetryError: RetryError[]
Logging error
Traceback (most recent call last):
File "tenacity\__init__.py", line 480, in
call File "videotrans\translator\_openaicompat.py", line 131, in _send
File "openai\_utils\_utils.py", line 298, in wrapper
File "openai\resources\chat\completions\completions.py", line 1215, in create
File "openai\_base_client.py", line 1332, in post
File "openai\_base_client.py", line 1105, in request
openai.RateLimitError: Error code: 429 - {'error': {'message': 'max_tokens is too large: 65536. This model supports at most 32768 completion tokens, whereas you provided 65536. (request id: 2026060518175295128127470wO0u6r)', 'type': 'invalid_request_error', 'param': 'max_tokens', 'code': 'invalid_value'}}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "videotrans\task\trans_create.py", line 390, in recogn
File "videotrans\translator\_openaicompat.py", line 158, in llm_segment
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 421, in exc_check
tenacity.RetryError: RetryError[]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "logging\__init__.py", line 1103, in emit
AttributeError: 'NoneType' object has no attribute 'write'
Call stack:
File "videotrans\task\job.py", line 35, in run
File "videotrans\task\job.py", line 100, in process_task
File "videotrans\task\trans_create.py", line 399, in recogn
File "logging\__init__.py", line 1512, in exception
File "logging\__init__.py", line 1506, in error
File "logging\__init__.py", line 1624, in _log
File "logging\__init__.py", line 1634, in handle
File "logging\__init__.py", line 1696, in callHandlers
File "logging\__init__.py", line 968, in handle
File "logging\__init__.py", line 1108, in emit
Message: '重新断句失败,已恢复原样 RetryError[