5 Commits

Author SHA1 Message Date
Vinlic
cbf215d8a8 Merge branch 'master' of https://github.com/LLM-Red-Team/kimi-free-api 2024-04-17 12:24:11 +08:00
Vinlic
7c3bc3c0d8 Release 0.0.27 2024-04-17 12:18:41 +08:00
Vinlic
ae8e8316e4 优化检索引用连接展示,避免url解析错误 2024-04-17 12:18:17 +08:00
Vinlic科技
e1b7e55e70 Update README.md 2024-04-17 01:10:10 +08:00
Vinlic科技
e1710ee95a Update README.md 2024-04-17 01:00:05 +08:00
3 changed files with 4 additions and 10 deletions

View File

@@ -63,12 +63,6 @@ ZhipuAI (智谱清言) 接口转API [glm-free-api](https://github.com/LLM-Red-Te
https://udify.app/chat/Po0F6BMJ15q5vu2P
## 测试接口
此接口实例部署在[Render](#Render部署)上面,遇到容器回收可能导致响应速度较慢,仅供测试,建议自行部署。
https://kimi-free-api-nut5.onrender.com
## 效果示例
### 验明正身Demo
@@ -186,7 +180,7 @@ cd kimi-free-api
vercel --prod
```
### Zeabur 部署
### Zeabur部署
**注意:免费账户的容器实例可能无法稳定运行**

View File

@@ -1,6 +1,6 @@
{
"name": "kimi-free-api",
"version": "0.0.26",
"version": "0.0.27",
"description": "Kimi Free API Server",
"type": "module",
"main": "dist/index.js",

View File

@@ -610,7 +610,7 @@ async function receiveStream(model: string, convId: string, stream: any) {
}
// 处理联网搜索
else if (!silentSearch && result.event == 'search_plus' && result.msg && result.msg.type == 'get_res')
refContent += `${result.msg.title}(${result.msg.url})\n`;
refContent += `${result.msg.title} - ${result.msg.url}\n`;
// else
// logger.warn(result.event, result);
}
@@ -707,7 +707,7 @@ function createTransStream(model: string, convId: string, stream: any, endCallba
choices: [
{
index: 0, delta: {
content: `检索 ${result.msg.title}(${result.msg.url}) ...\n`
content: `检索 ${result.msg.title} - ${result.msg.url} ...\n`
}, finish_reason: null
}
],