Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinlic committed Apr 10, 2024
1 parent 258404b commit ab0cb3c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ ZhipuAI (智谱清言) 接口转API [glm-free-api](https://github.com/LLM-Red-Te
* [原生部署](#原生部署)
* [接口列表](#接口列表)
* [对话补全](#对话补全)
* [token存活检测](#token存活检测)
* [注意事项](#注意事项)
* [Nginx反代优化](#Nginx反代优化)

Expand Down Expand Up @@ -206,6 +207,26 @@ Authorization: Bearer [refresh_token]
}
```

### token存活检测

检测token是否存活,如果存活live未true,否则为false,请不要频繁(小于10分钟)调用此接口。

**POST /token/check**

请求数据:
```json
{
"token": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9..."
}
```

响应数据:
```json
{
"live": true
}
```

## 注意事项

### Nginx反代优化
Expand Down

0 comments on commit ab0cb3c

Please sign in to comment.