Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法设置deepseek的api #474

Closed
veizei-K opened this issue Jan 15, 2025 · 7 comments
Closed

无法设置deepseek的api #474

veizei-K opened this issue Jan 15, 2025 · 7 comments

Comments

@veizei-K
Copy link

image
已经设置了deepseek的api和模型,但是当我使用pdf2zh aaa.pdf -s deepseek的时候报错
ckpt = torch.load(file, map_location="cpu")
Traceback (most recent call last):
File "D:\miniconda3\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\miniconda3\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "D:\miniconda3\Scripts\pdf2zh.exe_main
.py", line 7, in
sys.exit(main())
File "D:\miniconda3\lib\site-packages\pdf2zh\pdf2zh.py", line 274, in main
extract_text(**vars(parsed_args))
File "D:\miniconda3\lib\site-packages\pdf2zh\pdf2zh.py", line 124, in extract_text
obj_patch: dict = pdf2zh.high_level.extract_text_to_fp(fp, **locals())
File "D:\miniconda3\lib\site-packages\pdf2zh\high_level.py", line 99, in extract_text_to_fp
device = TextConverter(
File "D:\miniconda3\lib\site-packages\pdf2zh\converter.py", line 396, in init
raise ValueError("Unsupported translation service")
ValueError: Unsupported translation service

@hellofinch
Copy link
Contributor

image
pip和docker安装的版本,使用图中的方式设置。
: )

@veizei-K
Copy link
Author

image pip和docker安装的版本,使用图中的方式设置。 : )

但是deepseek在上表中啊

@hellofinch
Copy link
Contributor

那是最新的代码里有,PR过程中会更新Readme。不然等到版本发布的时候,应该不知道中间添加过什么了。

@ydwszuibd
Copy link

同问,我知道deepseek的URL、KEY和open AI是兼容的,就是不知道怎么在终端管理员窗口加上去

@yihao-liang
Copy link

遇到了同样的问题

Image Image

@hellofinch
Copy link
Contributor

@Byaidu 请求关闭issue。

@Wybxc Wybxc closed this as completed Jan 17, 2025
@liuyun16
Copy link

image pip和docker安装的版本,使用图中的方式设置。 : )

这个文档的全文链接在哪里呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants