mirror of
https://github.com/Kakune55/PyGetGPT.git
synced 2025-12-16 17:23:55 +08:00
新建存储库 PyGetGPT正式发行版
This commit is contained in:
17
doc/serverapi.md
Normal file
17
doc/serverapi.md
Normal 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 |
|
||||
| |
|
||||
Reference in New Issue
Block a user