#5130 {'model': 'doubao-seed-2-0-pro-260215', 'frequency_penalty': 0, 'timeout': 300, 'max_completion_tokens': 32768, 'tempera

38.207* Posted at: 3 hours ago

Error code: 403 - {'error': {'code': 'AccountOverdueError', 'message': 'The request failed because your account has an overdue balance. Request id: 0217812024044352517eaebb3f5dd4b09ef71d9ad3c9370731c58', 'param': '', 'type': 'Forbidden'}}
{'model': 'doubao-seed-2-0-pro-260215', 'frequency_penalty': 0, 'timeout': 300, 'max_completion_tokens': 32768, 'temperature': 0.2}:Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 75, in _item_task
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.PermissionDeniedError: Error code: 403 - {'error': {'code': 'AccountOverdueError', 'message': 'The request failed because your account has an overdue balance. Request id: 0217812024044352517eaebb3f5dd4b09ef71d9ad3c9370731c58', 'param': '', 'type': 'Forbidden'}}

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 858, in run
File "videotrans\translator\_base.py", line 72, in run
File "videotrans\translator\_base.py", line 142, in _run_srt
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 400, in
File "concurrent\futures\_base.py", line 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_openaicompat.py", line 78, in _item_task
videotrans.configure.excepts.StopTask: Error code: 403 - {'error': {'code': 'AccountOverdueError', 'message': 'The request failed because your account has an overdue balance. Request id: 0217812024044352517eaebb3f5dd4b09ef71d9ad3c9370731c58', 'param': '', 'type': 'Forbidden'}}
{'model': 'doubao-seed-2-0-pro-260215', 'frequency_penalty': 0, 'timeout': 300, 'max_completion_tokens': 32768, 'temperature': 0.2}


=
system:Windows-10-10.0.28000-SP0
version:v4.01
frozen:True
language:zh
root_dir:D:/BaiduNetdiskDownload/win-pyvideotrans-v4.01-0602

1 Replies

这是由于你的火山引擎(字节跳动)API账户余额不足导致的报错。你使用的模型 doubao-seed-2-0-pro-260215 属于付费服务,当前账户欠费,API 请求被拒绝。

解决方案:

  1. 登录火山引擎控制台,检查账户余额并充值。
  2. 若不想付费,可在翻译渠道中切换为免费渠道(如 Microsoft 翻译或 Edge-TTS),无需密钥即可使用。

请查阅相关文档:

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. Dondate: ko-fi.com/jianchang512

Related resource