From 420a9e71c0d2446f8f501665d2a1c281b0734035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vinlic=E7=A7=91=E6=8A=80?= Date: Mon, 22 Apr 2024 16:49:16 +0800 Subject: [PATCH 1/5] Update README.md --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b5d824b..6021d7c 100644 --- a/README.md +++ b/README.md @@ -21,13 +21,17 @@ Moonshot AI(Kimi.ai)接口转API [kimi-free-api](https://github.com/LLM-Red- 聆心智能 (Emohaa) 接口转API [emohaa-free-api](https://github.com/LLM-Red-Team/emohaa-free-api) -## 声明 +## 免责声明 -仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担! +**逆向API是不稳定的,建议前往智谱AI官方 https://open.bigmodel.cn/ 付费使用API,避免封禁的风险。** -仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担! +**本组织和个人不接受任何资金捐助和交易,此项目是纯粹研究交流学习性质!** -仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担! +**仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担!** + +**仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担!** + +**仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担!** ## 目录 From 36e89c0b2a0dfea35fd74ba54e376ae117eea1a0 Mon Sep 17 00:00:00 2001 From: Yanyutin753 <132346501+Yanyutin753@users.noreply.github.com> Date: Wed, 24 Apr 2024 13:17:43 +0800 Subject: [PATCH 2/5] =?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 6ecd2fa..16738dd 100644 --- a/src/api/routes/index.ts +++ b/src/api/routes/index.ts @@ -5,6 +5,7 @@ import chat from "./chat.ts"; import images from "./images.ts"; import ping from "./ping.ts"; import token from './token.js'; +import models from './models.ts'; export default [ { @@ -23,5 +24,6 @@ export default [ chat, images, 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..f776cb0 --- /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": "glm-3-turbo", + "object": "model", + "owned_by": "glm-free-api" + }, + { + "id": "glm-4", + "object": "model", + "owned_by": "glm-free-api" + }, + { + "id": "glm-4v", + "object": "model", + "owned_by": "glm-free-api" + }, + { + "id": "glm-v1", + "object": "model", + "owned_by": "glm-free-api" + }, + { + "id": "glm-v1-vision", + "object": "model", + "owned_by": "glm-free-api" + } + ] + }; + } + + } +} \ No newline at end of file From 8d8986b4b29e0472ac3c9a1297dfc39e9d138163 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:04 +0800 Subject: [PATCH 3/5] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6021d7c..fe5e960 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ 与ChatGPT接口完全兼容。 -还有以下五个free-api欢迎关注: +还有以下六个free-api欢迎关注: Moonshot AI(Kimi.ai)接口转API [kimi-free-api](https://github.com/LLM-Red-Team/kimi-free-api) @@ -17,7 +17,9 @@ Moonshot AI(Kimi.ai)接口转API [kimi-free-api](https://github.com/LLM-Red- 阿里通义 (Qwen) 接口转API [qwen-free-api](https://github.com/LLM-Red-Team/qwen-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 8b56bbf3a4b8bf3cd2d9c687247e8cd4f87b7232 Mon Sep 17 00:00:00 2001 From: Shi Sheng Date: Wed, 24 Apr 2024 12:46:40 -0400 Subject: [PATCH 4/5] Update README.md --- README.md | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index fe5e960..c75f86e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # GLM AI Free 服务 -![](https://img.shields.io/github/license/llm-red-team/glm-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/glm-free-api.svg) ![](https://img.shields.io/github/forks/llm-red-team/glm-free-api.svg) ![](https://img.shields.io/docker/pulls/vinlic/glm-free-api.svg) @@ -23,21 +23,9 @@ Moonshot AI(Kimi.ai)接口转API [kimi-free-api](https://github.com/LLM-Red- 聆心智能 (Emohaa) 接口转API [emohaa-free-api](https://github.com/LLM-Red-Team/emohaa-free-api) -## 免责声明 - -**逆向API是不稳定的,建议前往智谱AI官方 https://open.bigmodel.cn/ 付费使用API,避免封禁的风险。** - -**本组织和个人不接受任何资金捐助和交易,此项目是纯粹研究交流学习性质!** - -**仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担!** - -**仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担!** - -**仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担!** - ## 目录 -* [声明](#声明) +* [免责声明](#免责声明) * [在线体验](#在线体验) * [效果示例](#效果示例) * [接入准备](#接入准备) @@ -56,14 +44,20 @@ Moonshot AI(Kimi.ai)接口转API [kimi-free-api](https://github.com/LLM-Red- * [refresh_token存活检测](#refresh_token存活检测) * [注意事项](#注意事项) * [Nginx反代优化](#Nginx反代优化) + * [Token统计](#Token统计) +* [Star History](#star-history) + +## 免责声明 -## 声明 +**逆向API是不稳定的,建议前往智谱AI官方 https://open.bigmodel.cn/ 付费使用API,避免封禁的风险。** -仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担! +**本组织和个人不接受任何资金捐助和交易,此项目是纯粹研究交流学习性质!** -仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担! +**仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担!** -仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担! +**仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担!** + +**仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担!** ## 在线体验 From 2b4dc650f1e0bcfe4412a754b9e52e31ea9caabf Mon Sep 17 00:00:00 2001 From: Shi Sheng Date: Wed, 24 Apr 2024 14:29:15 -0400 Subject: [PATCH 5/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c75f86e..483969b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # GLM AI Free 服务 -[![](https://img.shields.io/github/license/llm-red-team/kimi-free-api.svg)](LICENSE) +[![](https://img.shields.io/github/license/llm-red-team/glm-free-api.svg)](LICENSE) ![](https://img.shields.io/github/stars/llm-red-team/glm-free-api.svg) ![](https://img.shields.io/github/forks/llm-red-team/glm-free-api.svg) ![](https://img.shields.io/docker/pulls/vinlic/glm-free-api.svg)