NieLamu
ff5f73e041
feat: fastapi 接口优化 ( #684 )
...
1. 接口增加参数校验,防止攻击
2. 优化接口参数和逻辑
3. 规范接口错误响应
4. 增加接口描述
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
2023-07-11 19:52:52 +08:00
Fan
10abb8d781
添加启动API的参数,支持https、wss方式API调用 ( #728 )
...
* update README.md
* 添加启动API的参数,支持https、wss方式API调用。(CA证书自备)
添加启动API服务的markdown说明文档。
---------
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
Co-authored-by: 一帆 <zhang.f@digitalcnzz.com>
2023-07-04 19:52:17 +08:00
imClumsyPanda
967ac2ed2b
merge master
2023-07-02 22:18:59 +08:00
Zhi-guo Huang
c52308d605
1. 修改stream_chat的接口,在请求体中选择knowledge_base_id;2. 增加stream_chat_bing接口;3. 增加了调用流式接口的方法说明;4. 优化cli_demo.py的逻辑:支持 输入提示;多输入;重新输入 ( #630 )
...
* 修复 bing_search.py的typo;更新model_config.py中Bing Subscription Key申请方式及注意事项
* 更新FAQ,增加了[Errno 110] Connection timed out的原因与解决方案
* 修改loader.py中load_in_8bit失败的原因和详细解决方案
* update loader.py
* stream_chat_bing
* 修改stream_chat的接口,在请求体中选择knowledge_base_id;增加stream_chat_bing接口
* 优化cli_demo.py的逻辑:支持 输入提示;多输入;重新输入
* update cli_demo.py
* 按照review建议进行修改
2023-07-02 21:54:12 +08:00
zzxs
6ab496ea4a
Update api.py ( #628 )
...
修复websocket的伪流式输出
2023-07-02 13:42:53 +08:00
imClumsyPanda
11dd2b5b84
update api.py
2023-06-14 00:35:33 +08:00
imClumsyPanda
a887df1715
add knowledge_base folder and move vector_store and content inside
2023-06-13 23:54:29 +08:00
zzxs
dc52bb134d
Update api.py ( #540 )
...
修改api部署json解析
2023-06-03 14:20:03 +08:00
移花香
8477368f9c
delete_docs ( #499 )
...
删除文档的时候重新生成知识库(FAISS)内的数据
2023-05-30 19:42:44 +08:00
imClumsyPanda
ad843a646d
update api.py
2023-05-22 11:53:11 +08:00
fxjhello
919a400cec
bingsearch前后端修改,history完善
2023-05-22 11:45:41 +08:00
imClumsyPanda
5acea5e4fc
update loaders
2023-05-21 23:52:35 +08:00
imClumsyPanda
0f3fc5234d
update webui.py and api.py
2023-05-21 23:04:46 +08:00
imClumsyPanda
5f38645fa1
update api.py
2023-05-21 22:27:02 +08:00
glide-the
7c74933285
Update api.py 删除默认启动参数
2023-05-19 13:07:59 +08:00
glide-the
4c008c25d4
增加项目可选启动项说明、增加项目结构说明
...
cli_demo.py、api.py: 兼容loader加载器
2023-05-18 22:55:50 +08:00
halfss
dfcd6f6102
添加bing搜索agent ( #378 )
...
* 1: 基于langchain的bing search agent添加bing搜索支持(百度不靠谱,Google不可用)
2: 调整输入框交互模式,对话/知识库/搜索,三选一
* fixed bug of message have no text
---------
Co-authored-by: root <jv.liu@i1368.com>
2023-05-16 23:51:34 +08:00
fxjhello
ff8cecd780
Merge pull request #365 from halfss/dev
...
add Knowledge Base delete and file delete
2023-05-15 19:54:05 +08:00
zqt996
a0cb14de23
添加命令行管理脚本 ( #355 )
...
* 添加加命令行工具
* 添加加命令行工具
---------
Co-authored-by: zqt <1178747941@qq.com>
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
2023-05-15 19:13:12 +08:00
royd
1678392cee
Update api.py ( #357 )
...
更改目前流式对话的传入模式,使其可以支持多轮对话,体现在新增参数:history、knowledge_base_id
2023-05-15 19:11:00 +08:00
root
2563b16af0
add Knowledge Base delete and file delete
2023-05-15 08:29:58 +00: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