mirror of
https://github.com/LLM-Red-Team/kimi-free-api.git
synced 2024-11-01 20:09:20 +08:00
update README
This commit is contained in:
parent
3a34174bf2
commit
a4c65fa30e
23
README.md
23
README.md
@ -4,6 +4,10 @@
|
|||||||
|
|
||||||
https://udify.app/chat/Po0F6BMJ15q5vu2P
|
https://udify.app/chat/Po0F6BMJ15q5vu2P
|
||||||
|
|
||||||
|
## 接入准备
|
||||||
|
|
||||||
|
从kimi获取refresh_token:进入kimi随便发起一个对话,然后F12打开开发者工具,从Application > Local Storage中找到refresh_token的值,这将作为API_KEY。
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
请先安装好Node.js环境并且配置好环境变量,确认node命令可用。
|
请先安装好Node.js环境并且配置好环境变量,确认node命令可用。
|
||||||
@ -49,3 +53,22 @@ pm2 reload kimi-free-api
|
|||||||
```shell
|
```shell
|
||||||
pm2 stop kimi-free-api
|
pm2 stop kimi-free-api
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 发起请求
|
||||||
|
|
||||||
|
目前支持与openai兼容的 `/v1/chat/completions` 接口
|
||||||
|
|
||||||
|
POST /v1/chat/completions
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"messages": [
|
||||||
|
{
|
||||||
|
"role": "user",
|
||||||
|
"content": "测试"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
// 如果使用SSE流请设置为true
|
||||||
|
"stream": false
|
||||||
|
}
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user