From c6da81a53ecd9945a4451ca0109cc4e971300d51 Mon Sep 17 00:00:00 2001 From: Shi Sheng Date: Tue, 23 Apr 2024 08:06:25 -0400 Subject: [PATCH 01/18] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b52c8e0..5437373 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [ 中文 | English ] -![](https://img.shields.io/github/license/llm-red-team/kimi-free-api.svg) +[![](https://img.shields.io/github/license/llm-red-team/kimi-free-api.svg)](LICENSE) ![](https://img.shields.io/github/stars/llm-red-team/kimi-free-api.svg) ![](https://img.shields.io/github/forks/llm-red-team/kimi-free-api.svg) ![](https://img.shields.io/docker/pulls/vinlic/kimi-free-api.svg) From a0c1bba3c9dd921ee742f2d960dd7c960ecb91a6 Mon Sep 17 00:00:00 2001 From: Shi Sheng Date: Tue, 23 Apr 2024 08:08:00 -0400 Subject: [PATCH 02/18] Update README.md --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 5437373..1046db4 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,5 @@ # KIMI AI Free 服务 - -
- [ 中文 | English ] From bdb8ced5ce57d76c83d75b7d2738930105d1a449 Mon Sep 17 00:00:00 2001 From: Shi Sheng Date: Tue, 23 Apr 2024 08:08:49 -0400 Subject: [PATCH 03/18] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 1046db4..5437373 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # KIMI AI Free 服务 + +
+ [ 中文 | English ] From ae6dc4a79f92f720b1d8cc853d886b7edaa4d926 Mon Sep 17 00:00:00 2001 From: Shi Sheng Date: Tue, 23 Apr 2024 08:09:42 -0400 Subject: [PATCH 04/18] Update README_EN.md --- README_EN.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README_EN.md b/README_EN.md index 84abc2f..ccde1c0 100644 --- a/README_EN.md +++ b/README_EN.md @@ -1,6 +1,9 @@ # KIMI AI Free Service -![](https://img.shields.io/github/license/llm-red-team/kimi-free-api.svg) + +
+ +[![](https://img.shields.io/github/license/llm-red-team/kimi-free-api.svg)](LICENSE) ![](https://img.shields.io/github/stars/llm-red-team/kimi-free-api.svg) ![](https://img.shields.io/github/forks/llm-red-team/kimi-free-api.svg) ![](https://img.shields.io/docker/pulls/vinlic/kimi-free-api.svg) From e8c6622e83f9067061f4477463c2fa5954ecb290 Mon Sep 17 00:00:00 2001 From: Shi Sheng Date: Tue, 23 Apr 2024 08:15:43 -0400 Subject: [PATCH 05/18] Update README_EN.md --- README_EN.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README_EN.md b/README_EN.md index ccde1c0..01c3a44 100644 --- a/README_EN.md +++ b/README_EN.md @@ -27,20 +27,20 @@ Listening Intelligence (Emohaa) API to API [emohaa-free-api](https://github.com/ ## Table of Contents * [Disclaimer](#disclaimer) -*[Online experience](#在线experience) -* [Effect Example](#EffectExample) -* [Access preparation](#access preparation) - * [Multiple account access](#multiple account access) -* [Docker Deployment](#DockerDeployment) - * [Docker-compose deployment](#Docker-compose deployment) -* [Native Deployment](#nativedeployment) -* [Interface List](#Interface List) - * [Dialogue completion](#dialogue completion) - * [Document Interpretation](#document interpretation) - * [Image analysis](#imageanalysis) - * [refresh_token survival detection](#refresh_token survival detection) -* [Note](# NOTE) - * [Nginx anti-generation optimization](#Nginx anti-generation optimization) +* [Online experience](#Online-Experience) +* [Effect Example](#Effect-Example) +* [Access preparation](#Access-Preparation) + * [Multiple account access](#Multi-Account-Access) +* [Docker Deployment](#Docker-Deployment) + * [Docker-compose deployment](#Docker-compose-deployment) +* [Native Deployment](#Native-deployment) +* [Interface List](#Interface-List) + * [Dialogue completion](#dialogue-completion) + * [Document Interpretation](#document-interpretation) + * [Image analysis](#imagean-alysis) + * [refresh_token survival detection](#refresh_token-survival-detection) +* [Note](#NOTE) + * [Nginx anti-generation optimization](#Nginx-anti-generation-optimization) ## Disclaimer From 6b343f4094666dd544ca7a9d506b2d45dd3fea84 Mon Sep 17 00:00:00 2001 From: Shi Sheng Date: Tue, 23 Apr 2024 08:17:49 -0400 Subject: [PATCH 06/18] Update README_EN.md --- README_EN.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README_EN.md b/README_EN.md index 01c3a44..265bf5d 100644 --- a/README_EN.md +++ b/README_EN.md @@ -28,14 +28,14 @@ Listening Intelligence (Emohaa) API to API [emohaa-free-api](https://github.com/ * [Disclaimer](#disclaimer) * [Online experience](#Online-Experience) -* [Effect Example](#Effect-Example) +* [Effect Examples](#Effect-Examples) * [Access preparation](#Access-Preparation) * [Multiple account access](#Multi-Account-Access) * [Docker Deployment](#Docker-Deployment) * [Docker-compose deployment](#Docker-compose-deployment) * [Native Deployment](#Native-deployment) * [Interface List](#Interface-List) - * [Dialogue completion](#dialogue-completion) + * [Conversation completion](#conversation-completion) * [Document Interpretation](#document-interpretation) * [Image analysis](#imagean-alysis) * [refresh_token survival detection](#refresh_token-survival-detection) From 4a225853affd08c0e0adbf63eb13a7feec415800 Mon Sep 17 00:00:00 2001 From: Shi Sheng Date: Tue, 23 Apr 2024 08:20:28 -0400 Subject: [PATCH 07/18] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5437373..c5e232c 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ ZhipuAI (智谱清言) 接口转API [glm-free-api](https://github.com/LLM-Red-Te * [refresh_token存活检测](#refresh_token存活检测) * [注意事项](#注意事项) * [Nginx反代优化](#Nginx反代优化) + * [Token统计](#Token统计) ## 免责声明 From 65a3fed83b2bde565518b21fc13119df8ff561b7 Mon Sep 17 00:00:00 2001 From: Shi Sheng Date: Tue, 23 Apr 2024 08:20:52 -0400 Subject: [PATCH 08/18] Update README_EN.md --- README_EN.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README_EN.md b/README_EN.md index 265bf5d..b2787e5 100644 --- a/README_EN.md +++ b/README_EN.md @@ -37,10 +37,11 @@ Listening Intelligence (Emohaa) API to API [emohaa-free-api](https://github.com/ * [Interface List](#Interface-List) * [Conversation completion](#conversation-completion) * [Document Interpretation](#document-interpretation) - * [Image analysis](#imagean-alysis) + * [Image analysis](#image-analysis) * [refresh_token survival detection](#refresh_token-survival-detection) -* [Note](#NOTE) +* [Precautions](#Precautions) * [Nginx anti-generation optimization](#Nginx-anti-generation-optimization) + * [Token statistics](#Token-statistics) ## Disclaimer From 43e14b6e3e44fa5317b46e79e7a4c866d00c2733 Mon Sep 17 00:00:00 2001 From: Shi Sheng Date: Tue, 23 Apr 2024 08:22:38 -0400 Subject: [PATCH 09/18] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c5e232c..c9918b6 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ ZhipuAI (智谱清言) 接口转API [glm-free-api](https://github.com/LLM-Red-Te * [Docker-compose部署](#Docker-compose部署) * [Render部署](#Render部署) * [Vercel部署](#Vercel部署) +* [Zeabur部署](#Zeabur部署) * [原生部署](#原生部署) * [接口列表](#接口列表) * [对话补全](#对话补全) From c9c26fdd313a7253cafc50520c35aaaa1409feb7 Mon Sep 17 00:00:00 2001 From: Shi Sheng Date: Tue, 23 Apr 2024 08:26:15 -0400 Subject: [PATCH 10/18] Update README_EN.md --- README_EN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README_EN.md b/README_EN.md index b2787e5..f2a8f7f 100644 --- a/README_EN.md +++ b/README_EN.md @@ -435,4 +435,4 @@ Since the inference side is not in kimi-free-api, the token cannot be counted an ## Star History -[![Star History Chart](https://api.star-history.com/svg?repos=LLM-Red-Team/kimi-free-api&type=Date)](https://star-history.com/ #LLM-Red-Team/kimi-free-api&Date) +[![Star History Chart](https://api.star-history.com/svg?repos=LLM-Red-Team/kimi-free-api&type=Date)](https://star-history.com/#LLM-Red-Team/kimi-free-api&Date) From f7c1fa7be3c96eeffd07161597648a8e43b20bd2 Mon Sep 17 00:00:00 2001 From: Yanyutin753 <132346501+Yanyutin753@users.noreply.github.com> Date: Wed, 24 Apr 2024 13:12:54 +0800 Subject: [PATCH 11/18] =?UTF-8?q?=E2=9C=A8feat=20support=20/v1/models=20to?= =?UTF-8?q?=20be=20better=20use=20lobechat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/routes/index.ts | 4 +++- src/api/routes/models.ts | 41 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 src/api/routes/models.ts diff --git a/src/api/routes/index.ts b/src/api/routes/index.ts index 72dc88f..c4dd754 100644 --- a/src/api/routes/index.ts +++ b/src/api/routes/index.ts @@ -4,6 +4,7 @@ import Response from '@/lib/response/Response.ts'; import chat from "./chat.ts"; import ping from "./ping.ts"; import token from './token.ts'; +import models from './models.ts'; export default [ { @@ -21,5 +22,6 @@ export default [ }, chat, ping, - token + token, + models ]; \ No newline at end of file diff --git a/src/api/routes/models.ts b/src/api/routes/models.ts new file mode 100644 index 0000000..2581d2e --- /dev/null +++ b/src/api/routes/models.ts @@ -0,0 +1,41 @@ +import _ from 'lodash'; + +export default { + + prefix: '/v1', + + get: { + '/models': async () => { + return { + "data": [ + { + "id": "moonshot-v1", + "object": "model", + "owned_by": "kimi-free-api" + }, + { + "id": "moonshot-v1-8k", + "object": "model", + "owned_by": "kimi-free-api" + }, + { + "id": "moonshot-v1-32k", + "object": "model", + "owned_by": "kimi-free-api" + }, + { + "id": "moonshot-v1-128k", + "object": "model", + "owned_by": "kimi-free-api" + }, + { + "id": "moonshot-v1-vision", + "object": "model", + "owned_by": "kimi-free-api" + } + ] + }; + } + + } +} \ No newline at end of file From 53436b5f21501aa7b2dd06bce513ca52c371c213 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vinlic=E7=A7=91=E6=8A=80?= Date: Wed, 24 Apr 2024 14:33:24 +0800 Subject: [PATCH 12/18] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c9918b6..2d8443f 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ 与ChatGPT接口完全兼容。 -还有以下五个free-api欢迎关注: +还有以下六个free-api欢迎关注: 阶跃星辰 (跃问StepChat) 接口转API [step-free-api](https://github.com/LLM-Red-Team/step-free-api) @@ -23,7 +23,9 @@ ZhipuAI (智谱清言) 接口转API [glm-free-api](https://github.com/LLM-Red-Team/glm-free-api) -秘塔AI (metaso) 接口转API [metaso-free-api](https://github.com/LLM-Red-Team/metaso-free-api) +秘塔AI (Metaso) 接口转API [metaso-free-api](https://github.com/LLM-Red-Team/metaso-free-api) + +讯飞星火(Spark)接口转API [spark-free-api](https://github.com/LLM-Red-Team/spark-free-api) 聆心智能 (Emohaa) 接口转API [emohaa-free-api](https://github.com/LLM-Red-Team/emohaa-free-api) From f1aa2e822ceb620dfd5264f5c88b440adf8642d9 Mon Sep 17 00:00:00 2001 From: Shi Sheng Date: Wed, 24 Apr 2024 07:48:08 -0400 Subject: [PATCH 13/18] Update README_EN.md --- README_EN.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/README_EN.md b/README_EN.md index f2a8f7f..38421c9 100644 --- a/README_EN.md +++ b/README_EN.md @@ -12,7 +12,7 @@ Supports high-speed streaming output, multi-turn dialogues, internet search, lon Fully compatible with the ChatGPT interface. -Also, the following four free APIs are available for your attention: +Also, the following six free APIs are available for your attention: Step to the Stars (StepChat) API to API [step-free-api](https://github.com/LLM-Red-Team/step-free-api) @@ -20,7 +20,9 @@ Ali Tongyi (Qwen) API to API [qwen-free-api](https://github.com/LLM-Red-Team/qwe ZhipuAI (Wisdom Map Clear Words) API to API [glm-free-api](https://github.com/LLM-Red-Team/glm-free-api) -MetaAI (metaso) 接口转API [metaso-free-api](https://github.com/LLM-Red-Team/metaso-free-api) +MetaAI (metaso) API to API [metaso-free-api](https://github.com/LLM-Red-Team/metaso-free-api) + +Iflytek Spark (Spark) API to API [spark-free-api](https://github.com/LLM-Red-Team/spark-free-api) Listening Intelligence (Emohaa) API to API [emohaa-free-api](https://github.com/LLM-Red-Team/emohaa-free-api) @@ -33,6 +35,7 @@ Listening Intelligence (Emohaa) API to API [emohaa-free-api](https://github.com/ * [Multiple account access](#Multi-Account-Access) * [Docker Deployment](#Docker-Deployment) * [Docker-compose deployment](#Docker-compose-deployment) +* [Zeabur Deployment](#Zeabur-Deployment) * [Native Deployment](#Native-deployment) * [Interface List](#Interface-List) * [Conversation completion](#conversation-completion) @@ -42,7 +45,8 @@ Listening Intelligence (Emohaa) API to API [emohaa-free-api](https://github.com/ * [Precautions](#Precautions) * [Nginx anti-generation optimization](#Nginx-anti-generation-optimization) * [Token statistics](#Token-statistics) - +* [Star History](#star-history) + ## Disclaimer **This organization and individuals do not accept any financial donations and transactions. This project is purely for research, communication, and learning purposes!** @@ -149,6 +153,10 @@ services: - TZ=Asia/Shanghai ``` +## Zeabur Deployment + +[![Deploy on Zeabur](https://zeabur.com/button.svg)](https://zeabur.com/templates/GRFYBP) + ## Native deployment Please prepare a server with a public IP and open port 8000. @@ -197,10 +205,6 @@ Out of service pm2 stop kimi-free-api ``` -## Zeabur Deployment - -[![Deploy on Zeabur](https://zeabur.com/button.svg)](https://zeabur.com/templates/GRFYBP) - ## interface list Currently, the `/v1/chat/completions` interface compatible with openai is supported. You can use the client access interface compatible with openai or other clients, or use online services such as [dify](https://dify.ai/) Access and use. From 0632d8111e04bd7306ddda1cb4ca0d2287fe11ed Mon Sep 17 00:00:00 2001 From: Shi Sheng Date: Wed, 24 Apr 2024 07:48:16 -0400 Subject: [PATCH 14/18] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2d8443f..6d690ee 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ ZhipuAI (智谱清言) 接口转API [glm-free-api](https://github.com/LLM-Red-Te * [注意事项](#注意事项) * [Nginx反代优化](#Nginx反代优化) * [Token统计](#Token统计) +* [Star History](#star-history) ## 免责声明 From bffd5a24a3f943a7e5d0d5722fe2083a62371ba7 Mon Sep 17 00:00:00 2001 From: Shi Sheng Date: Wed, 24 Apr 2024 15:22:32 -0400 Subject: [PATCH 15/18] Update README_EN.md --- README_EN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README_EN.md b/README_EN.md index 38421c9..a90e1ad 100644 --- a/README_EN.md +++ b/README_EN.md @@ -18,7 +18,7 @@ Step to the Stars (StepChat) API to API [step-free-api](https://github.com/LLM-R Ali Tongyi (Qwen) API to API [qwen-free-api](https://github.com/LLM-Red-Team/qwen-free-api) -ZhipuAI (Wisdom Map Clear Words) API to API [glm-free-api](https://github.com/LLM-Red-Team/glm-free-api) +ZhipuAI (ChatGLM) API to API [glm-free-api](https://github.com/LLM-Red-Team/glm-free-api) MetaAI (metaso) API to API [metaso-free-api](https://github.com/LLM-Red-Team/metaso-free-api) From 2b32fc66f4614dccdd016648e95335a09f244d91 Mon Sep 17 00:00:00 2001 From: Shi Sheng Date: Wed, 24 Apr 2024 15:36:38 -0400 Subject: [PATCH 16/18] Update README_EN.md --- README_EN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README_EN.md b/README_EN.md index a90e1ad..07fd9d9 100644 --- a/README_EN.md +++ b/README_EN.md @@ -14,7 +14,7 @@ Fully compatible with the ChatGPT interface. Also, the following six free APIs are available for your attention: -Step to the Stars (StepChat) API to API [step-free-api](https://github.com/LLM-Red-Team/step-free-api) +StepFun (StepChat) API to API [step-free-api](https://github.com/LLM-Red-Team/step-free-api) Ali Tongyi (Qwen) API to API [qwen-free-api](https://github.com/LLM-Red-Team/qwen-free-api) From b9caca328980895197b2ba32c59589d237a2b755 Mon Sep 17 00:00:00 2001 From: Shi Sheng Date: Wed, 24 Apr 2024 15:41:33 -0400 Subject: [PATCH 17/18] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6d690ee..1e78b0f 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ 阿里通义 (Qwen) 接口转API [qwen-free-api](https://github.com/LLM-Red-Team/qwen-free-api) -ZhipuAI (智谱清言) 接口转API [glm-free-api](https://github.com/LLM-Red-Team/glm-free-api) +智谱AI (智谱清言) 接口转API [glm-free-api](https://github.com/LLM-Red-Team/glm-free-api) 秘塔AI (Metaso) 接口转API [metaso-free-api](https://github.com/LLM-Red-Team/metaso-free-api) From c1c601b498e747c1f41fa6bb5f2ec10f01ea5b74 Mon Sep 17 00:00:00 2001 From: Shi Sheng Date: Wed, 24 Apr 2024 20:51:11 -0400 Subject: [PATCH 18/18] Update README_EN.md --- README_EN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README_EN.md b/README_EN.md index 07fd9d9..7835bc0 100644 --- a/README_EN.md +++ b/README_EN.md @@ -24,7 +24,7 @@ MetaAI (metaso) API to API [metaso-free-api](https://github.com/LLM-Red-Team/met Iflytek Spark (Spark) API to API [spark-free-api](https://github.com/LLM-Red-Team/spark-free-api) -Listening Intelligence (Emohaa) API to API [emohaa-free-api](https://github.com/LLM-Red-Team/emohaa-free-api) +Lingxin Intelligence (Emohaa) API to API [emohaa-free-api](https://github.com/LLM-Red-Team/emohaa-free-api) ## Table of Contents