mirror of
https://github.com/LLM-Red-Team/kimi-free-api.git
synced 2025-10-21 10:17:31 +00:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
399242b09e | ||
![]() |
d13ba31d0e | ||
![]() |
c8c215448f | ||
![]() |
f3dae64a4c | ||
![]() |
376c48e8e5 | ||
![]() |
8c4c6408ba |
@@ -1,4 +1,4 @@
|
|||||||
# KIMI Free 服务
|
# KIMI AI Free 服务
|
||||||
|
|
||||||
## 声明
|
## 声明
|
||||||
|
|
||||||
@@ -10,13 +10,16 @@
|
|||||||
|
|
||||||
## 在线体验
|
## 在线体验
|
||||||
|
|
||||||
此链接仅临时测试功能,不可长期使用,长期使用请自行部署并
|
此链接仅临时测试功能,不可长期使用,长期使用请自行部署。
|
||||||
|
|
||||||
https://udify.app/chat/Po0F6BMJ15q5vu2P
|
https://udify.app/chat/Po0F6BMJ15q5vu2P
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
## 接入准备
|
## 接入准备
|
||||||
|
|
||||||
从kimi获取refresh_token:进入kimi随便发起一个对话,然后F12打开开发者工具,从Application > Local Storage中找到refresh_token的值,这将作为API_KEY。
|
从 [kimi.moonshot.cn](https://kimi.moonshot.cn) 获取refresh_token:进入kimi随便发起一个对话,然后F12打开开发者工具,从Application > Local Storage中找到refresh_token的值,这将作为API_KEY。
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
|
BIN
doc/example-1.png
Normal file
BIN
doc/example-1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 100 KiB |
BIN
doc/example-2.png
Normal file
BIN
doc/example-2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 101 KiB |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "kimi-free-api",
|
"name": "kimi-free-api",
|
||||||
"version": "0.0.2",
|
"version": "0.0.3",
|
||||||
"description": "Kimi Free Server",
|
"description": "Kimi Free Server",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
@@ -161,7 +161,7 @@ async function receiveStream(convId: string, stream: any) {
|
|||||||
data.choices[0].message.content += result.text;
|
data.choices[0].message.content += result.text;
|
||||||
}
|
}
|
||||||
else if (result.event == 'all_done' || result.event == 'error') {
|
else if (result.event == 'all_done' || result.event == 'error') {
|
||||||
data.choices[0].message.content += '\n[内容由于不合规被停止生成,我们换个话题吧]' + (refContent ? `\n\n搜索结果来自:\n${refContent}` : '');
|
data.choices[0].message.content += (result.event == 'error' ? '\n[内容由于不合规被停止生成,我们换个话题吧]' : '') + (refContent ? `\n\n搜索结果来自:\n${refContent}` : '');
|
||||||
refContent = '';
|
refContent = '';
|
||||||
resolve(data);
|
resolve(data);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user