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

[BUG] webui.py的15行api对象构建写死了url,导致configs的host和port改动则会报错 #1319

Closed
kquark opened this issue Aug 31, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@kquark
Copy link

kquark commented Aug 31, 2023

问题描述 / Problem Description
webui.py的15行api对象构建写死了url,导致configs的host和port改动则会报错

预期的结果 / Expected Result
api构建对象需要的url从configs里面import构建得到
例如:

from configs.server_config import API_SERVER

api = ApiRequest(base_url="http://{}:{}".format(host, port), ...)

实际结果 / Actual Result

api = ApiRequest(base_url="http://127.0.0.1:7861", ...)
@kquark kquark added the bug Something isn't working label Aug 31, 2023
liunux4odoo added a commit that referenced this issue Aug 31, 2023
* 避免configs对torch的依赖;
* webui自动从configs获取api地址(close #1319)
* bug fix: 重建知识库时FAISS未保存
* 优化LLM和Embedding模型运行设备配置,可设为auto自动检测
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

1 participant