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

支持lite模式:无需安装torch等重依赖,通过在线API实现LLM对话和搜索引擎对话 #1860

Merged
merged 3 commits into from
Oct 25, 2023

Conversation

liunux4odoo
Copy link
Collaborator

@liunux4odoo liunux4odoo commented Oct 24, 2023

move get_default_llm_model from webui to ApiRequest

增加API接口及其测试用例:

  • /server/get_prompt_template: 获取服务器配置的 prompt 模板
  • 增加知识库多线程访问测试用例

支持lite模式:禁用知识库相关功能,无需安装torch等重依赖,通过在线API实现LLM对话和搜索引擎对话。

运行方式:

$ pip install -r requirements_lite.txt
$ python startup.py -a --lite

liunux4odoo and others added 3 commits October 24, 2023 22:07
增加API接口及其测试用例:
- /server/get_prompt_template: 获取服务器配置的 prompt 模板
- 增加知识库多线程访问测试用例

支持lite模式:无需安装torch等重依赖,通过在线API实现LLM对话和搜索引擎对话
@liunux4odoo
Copy link
Collaborator Author

TODO:

  • 接入在线embeddings
  • completion支持API模型
  • webui支持completion

@liunux4odoo liunux4odoo merged commit 03e55e1 into chatchat-space:dev Oct 25, 2023
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

Successfully merging this pull request may close these issues.

2 participants