mirror of
https://github.com/LLM-Red-Team/glm-free-api.git
synced 2024-12-22 08:59:23 +08:00
Merge branch 'master' of https://github.com/LLM-Red-Team/glm-free-api
This commit is contained in:
commit
376bb55ce3
32
README.md
32
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/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)
|
||||
@ -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,21 +17,15 @@ 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)
|
||||
|
||||
## 声明
|
||||
|
||||
仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担!
|
||||
|
||||
仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担!
|
||||
|
||||
仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担!
|
||||
|
||||
## 目录
|
||||
|
||||
* [声明](#声明)
|
||||
* [免责声明](#免责声明)
|
||||
* [在线体验](#在线体验)
|
||||
* [效果示例](#效果示例)
|
||||
* [接入准备](#接入准备)
|
||||
@ -50,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,避免封禁的风险。**
|
||||
|
||||
仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担!
|
||||
**本组织和个人不接受任何资金捐助和交易,此项目是纯粹研究交流学习性质!**
|
||||
|
||||
仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担!
|
||||
**仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担!**
|
||||
|
||||
仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担!
|
||||
**仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担!**
|
||||
|
||||
**仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担!**
|
||||
|
||||
## 在线体验
|
||||
|
||||
|
@ -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
|
||||
];
|
41
src/api/routes/models.ts
Normal file
41
src/api/routes/models.ts
Normal file
@ -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"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user