新建存储库 PyGetGPT正式发行版

This commit is contained in:
2023-11-17 18:31:02 +08:00
commit 2b8f18157d
12 changed files with 554 additions and 0 deletions

17
doc/serverapi.md Normal file
View File

@@ -0,0 +1,17 @@
# server API 接口文档
## 请求格式json
| 键 | 类型 | 必选 | 示例 |
|---------|------|-----|-----|
| prompt | str | yes | "你好" |
| userkey | str | yes | "2b3j41b2xh1hz1" |
| history | list | no | "history":[{"user":"XXXXXX","bot":"XXXXXX"},{"user":"XXXXXX""bot":"XXXXXX"}] |
## 返回格式json
| 键 | 类型 | 示例 |
|----|------|------|
| code | int | 200 |
| output | str | "你好" |
| surplus | int | 10000 |
| |