Skip to content

Commit

Permalink
docs(web-api): 设计交互协议
Browse files Browse the repository at this point in the history
Signed-off-by: YdrMaster <[email protected]>
  • Loading branch information
YdrMaster committed Apr 17, 2024
1 parent 78d99ed commit b9231c7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions web-api/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# web 服务

实现 web 服务,提供 RESTful API 接口。

```json
{
"/infer": {
"session_id": "String",
"inputs": [{
"role": "String",
"content": "String"
}],
"dialog_pos": "int"
},
"/fork": {
"session_id": "String",
"new_session_id": "String"
},
"/drop": {
"session_id": "String"
}
}
```
2 changes: 2 additions & 0 deletions web-api/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]

mod handlers;
mod manager;
mod response;
Expand Down

0 comments on commit b9231c7

Please sign in to comment.