#7694 invalid literal for int() with base 10: '499ff7a6-6ae3-49ad-ab9d-8bb3526de475':Traceback (most recent call last): File

23.177**9 Posted at: 1 hour ago

invalid literal for int() with base 10: '499ff7a6-6ae3-49ad-ab9d-8bb3526de475':Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 75, in run
File "", line 21, in init
File "videotrans\translator\_deepseek.py", line 14, in post_init
ValueError: invalid literal for int() with base 10: '499ff7a6-6ae3-49ad-ab9d-8bb3526de475'


=
system:Windows-10-10.0.22000-SP0
version:v4.14
frozen:True
language:zh_CN
root_dir:D:/ABC

1 Replies

#1 DeepSeek reply at 1 hour ago

问题出在 DeepSeek 渠道的 API Key 配置上。

错误信息
invalid literal for int() with base 10: '499ff7a6-...' 表明软件把一长串 UUID 字符串(499ff7a6-6ae3-49ad-ab9d-8bb3526de475`)当作了数字类型的模型名称来解析,而该位置实际应填写的是 API Key。

核心原因:你在 DeepSeek 设置窗口中,把「API Key」和「模型名称」两个输入框的内容填反了或填错了位置。

解决步骤:

  1. 点击软件顶部菜单 菜单(Menu) -> 翻译设置 -> DeepSeek,打开 DeepSeek 设置窗口。

  2. 检查各输入框内容:

    • API Key / 密钥 框:应填写以 sk- 开头的 DeepSeek 密钥(如 sk-xxxxxxxx)。

    • 模型名称 框:应填写模型名,如 deepseek-chat 或 deepseek-reasoner,不能填写密钥或 UUID。

    • 你现在填的那串 499ff7a6-6ae3-49ad-ab9d-8bb3526de475 既不是 API Key 也不是模型名,属于误填。

  3. 前往 https://platform.deepseek.com/ 登录并充值,在「API Keys」页面创建一个新密钥(sk- 开头),复制粘贴到软件 API Key 框中。

  4. 模型名称框保持默认填写 deepseek-chat 即可。

  5. 保存后重新执行翻译测试。

请查阅相关文档:

如果按上述步骤修正后仍报错,请提供该设置窗口的截图以便进一步判断。

`

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