PyGetGPT/doc/serverapi.md

17 lines
467 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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 |
| |