Commit Graph

18 Commits

Author SHA1 Message Date
royd 1678392cee
Update api.py (#357)
更改目前流式对话的传入模式,使其可以支持多轮对话,体现在新增参数:history、knowledge_base_id
2023-05-15 19:11:00 +08:00
imClumsyPanda 3ff885d0d3 update api.py 2023-05-13 21:35:17 +08:00
imClumsyPanda 6e7078cf24 update api.py 2023-05-13 11:02:27 +08:00
imClumsyPanda 6e022d0d45 update api.py 2023-05-12 22:24:31 +08:00
imClumsyPanda a8ac40163c update api.py 2023-05-12 20:46:51 +08:00
imClumsyPanda 5575079e6b update api.py 2023-05-12 18:23:13 +08:00
imClumsyPanda 8635f63c31 update api.py 2023-05-12 18:13:35 +08:00
imClumsyPanda f02df58f41 update api.py 2023-05-11 18:37:33 +08:00
akou 2987c9cd52
增加允许跨域调用API功能 (#279) 2023-05-11 09:32:58 +08:00
fxjhello 809eba8c67 增加前端views 2023-05-09 11:46:31 +08:00
imClumsyPanda 41cd0fd8ae
完善知识库路径问题,完善api接口 (#245) (#246)
* Fix 知识库无法上载,NLTK_DATA_PATH路径错误 (#236)

* Update chatglm_llm.py (#242)

* 完善知识库路径问题,完善api接口

统一webui、API接口知识库路径,后续路径如下:
知识库路经就是:/项目代码文件夹/vector_store/'知识库名字'
文件存放路经:/项目代码文件夹/content/'知识库名字'

修复通过api接口创建知识库的BUG,完善API接口功能。

* Update model_config.py

---------

Co-authored-by: shrimp <411161555@qq.com>
Co-authored-by: Bob Chang <bob-chang@outlook.com>
2023-05-05 19:32:11 +08:00
imClumsyPanda 07ff81a119 update torch_gc 2023-05-04 20:48:36 +08:00
imClumsyPanda 2c1fd2bdd5 add api.py 2023-05-03 22:31:28 +08:00
Bing Han e0cf26019b
Use fastapi to implement API (#209)
* Use fastapi to implement API

* Update model_config.py

---------

Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
2023-05-03 21:29:28 +08:00
imClumsyPanda 966def8cfe add stream support to webui.py 2023-04-26 23:27:15 +08:00
imClumsyPanda d82af9ba7a update webui.py 2023-04-22 16:53:11 +08:00
imClumsyPanda 7d4560e599 update local_doc_qa.py 2023-04-19 21:29:20 +08:00
imClumsyPanda 048c71f893 fix bug in webui.py 2023-04-18 10:07:19 +08:00