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

1.8.9版本,set的环境变量大模型参数无法传递到GUI #505

Open
htyxyt opened this issue Jan 21, 2025 · 3 comments
Open

1.8.9版本,set的环境变量大模型参数无法传递到GUI #505

htyxyt opened this issue Jan 21, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@htyxyt
Copy link

htyxyt commented Jan 21, 2025

问题描述

1.8.8没有这个问题,大模型参数可以正常传递。
升级1.8.9之后,set完大模型参数,环境变量里也能查到。
Image
但是pdf2zh -i打开的GUI界面里,大模型参数依然为空,没有传递过来。
Image

测试文档

界面问题,无测试文档

@htyxyt htyxyt added the bug Something isn't working label Jan 21, 2025
@hellofinch
Copy link
Contributor

可以正常调用翻译service吗?

@htyxyt
Copy link
Author

htyxyt commented Jan 22, 2025

可以正常调用翻译service吗?

google没问题。
deepseek不行,如果KEY空着,网页显示报错。如果手动粘贴进去key,网页翻译卡住,控制台输出
ERROR:pdf2zh.converter:invalid syntax (<string>, line 0)

@hellofinch
Copy link
Contributor

hellofinch commented Jan 22, 2025

llm的话webUI确实有问题,需要应用一下 #495 这个PR。

目前对于这个问题有三个方式解决:

  1. 使用最新的源码安装运行pip install .
  2. 使用docker,应用 fix : prompt not work with GUI. #495 中的修改,然后在docker重新安装。
  3. 使用pip install pdf2zh的安装方法,找到pdf2zh的安装地址,然后应用fix : prompt not work with GUI. #495 中的修改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants