-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Comments
那是最新的代码里有,PR过程中会更新Readme。不然等到版本发布的时候,应该不知道中间添加过什么了。 |
同问,我知道deepseek的URL、KEY和open AI是兼容的,就是不知道怎么在终端管理员窗口加上去 |
@Byaidu 请求关闭issue。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
已经设置了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
The text was updated successfully, but these errors were encountered: