#3242 requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://ark.cn-beijing.volces.com/api/v3/chat/comple

101.87* Posted at: 11 hours ago 👁10

404 Client Error: Not Found for url: https://ark.cn-beijing.volces.com/api/v3/chat/completions:Traceback (most recent call last):
File "videotrans\translator\_base.py", line 102, in run
File "videotrans\translator\_base.py", line 165, 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 421, in exc_check
tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 963, in run
File "videotrans\translator\_base.py", line 105, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_huoshan.py", line 56, in _item_task
File "requests\models.py", line 1026, in raise_for_status
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://ark.cn-beijing.volces.com/api/v3/chat/completions


=
system:Windows-10-10.0.26100-SP0
version:v3.97
frozen:True
language:zh
root_dir:D:/BaiduNetdiskDownload/win-pyvideotrans-v3.97

1 Replies

这是由于配置的字节火山方舟翻译API地址或模型名称不正确导致的。

  1. 检查API地址和模型名称:在翻译渠道设置中,确认“API URL”和“模型”填写无误。根据知识库,字节火山方舟的API地址应为 https://ark.cn-beijing.volces.com/api/v3/chat/completions。请确保模型名称与您在火山方舟平台创建并部署的模型完全一致。
  2. 核对API密钥:确认您填写的API密钥(API Key)有效且具有调用该模型的权限。
  3. 参考官方文档:详细配置步骤请查阅字节火山方舟的官方接入指南。

请查阅相关文档:

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

Similar issues already exist