Skip to content

Commit

Permalink
更换名称
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinlic committed Jan 25, 2025
1 parent 985c841 commit d442b44
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 56 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
id: sync
uses: aormsby/[email protected]
with:
upstream_sync_repo: LLM-Red-Team/hailuo-free-api
upstream_sync_repo: LLM-Red-Team/minimax-free-api
upstream_sync_branch: master
target_sync_branch: master
target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set
Expand All @@ -43,6 +43,6 @@ jobs:
title: '🚨 同步失败 | Sync Fail'
labels: '🚨 Sync Fail'
body: |
Due to a change in the workflow file of the LLM-Red-Team/hailuo-free-api upstream repository, GitHub has automatically suspended the scheduled automatic update. You need to manually sync your fork. Please refer to the detailed [Tutorial][tutorial-en-US] for instructions.
Due to a change in the workflow file of the LLM-Red-Team/minimax-free-api upstream repository, GitHub has automatically suspended the scheduled automatic update. You need to manually sync your fork. Please refer to the detailed [Tutorial][tutorial-en-US] for instructions.
由于 LLM-Red-Team/hailuo-free-api 上游仓库的 workflow 文件变更,导致 GitHub 自动暂停了本次自动更新,你需要手动 Sync Fork 一次,
由于 LLM-Red-Team/minimax-free-api 上游仓库的 workflow 文件变更,导致 GitHub 自动暂停了本次自动更新,你需要手动 Sync Fork 一次,
99 changes: 55 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# MiniMax Hailuo AI Free 服务

[![](https://img.shields.io/github/license/llm-red-team/hailuo-free-api.svg)](LICENSE)
![](https://img.shields.io/github/stars/llm-red-team/hailuo-free-api.svg)
![](https://img.shields.io/github/forks/llm-red-team/hailuo-free-api.svg)
![](https://img.shields.io/docker/pulls/vinlic/hailuo-free-api.svg)
[![](https://img.shields.io/github/license/llm-red-team/minimax-free-api.svg)](LICENSE)
![](https://img.shields.io/github/stars/llm-red-team/minimax-free-api.svg)
![](https://img.shields.io/github/forks/llm-red-team/minimax-free-api.svg)
![](https://img.shields.io/docker/pulls/vinlic/minimax-free-api.svg)

支持最新MiniMax-Text-01、MiniMax-VL-01模型,支持高速流式输出、支持多轮对话、支持语音合成、语音识别、支持联网搜索、支持长文档解读、支持图像解析,零配置部署,多路token支持,自动清理会话痕迹。

**注意,Docker镜像 vinlic/hailuo-free-api 已更名为 vinlic/minimax-free-api,旧镜像将不再继续维护!**

与ChatGPT接口完全兼容。

还有以下十个free-api欢迎关注:
Expand All @@ -33,30 +35,39 @@ ZhipuAI (智谱清言) 接口转API [glm-free-api](https://github.com/LLM-Red-Te

## 目录

* [免责声明](#免责声明)
* [效果示例](#效果示例)
* [接入准备](#接入准备)
* [多账号接入](#多账号接入)
* [Docker部署](#Docker部署)
* [Docker-compose部署](#Docker-compose部署)
* [Render部署](#Render部署)
* [Vercel部署](#Vercel部署)
* [原生部署](#原生部署)
* [推荐使用客户端](#推荐使用客户端)
* [接口列表](#接口列表)
* [对话补全](#对话补全)
* [创建语音](#创建语音)
* [官方发音人](#官方发音人)
* [克隆发音人](#克隆发音人)
* [自定义发音人映射](#自定义发音人映射)
* [创建转录](#创建转录)
* [文档解读](#文档解读)
* [图像解析](#图像解析)
* [_token存活检测](#_token存活检测)
* [注意事项](#注意事项)
* [Nginx反代优化](#Nginx反代优化)
* [Token统计](#Token统计)
* [Star History](#star-history)
- [MiniMax Hailuo AI Free 服务](#minimax-hailuo-ai-free-服务)
- [目录](#目录)
- [免责声明](#免责声明)
- [效果示例](#效果示例)
- [验明正身Demo](#验明正身demo)
- [语音合成Demo](#语音合成demo)
- [语音识别Demo](#语音识别demo)
- [多轮对话Demo](#多轮对话demo)
- [联网搜索Demo](#联网搜索demo)
- [长文档解读Demo](#长文档解读demo)
- [图像解析Demo](#图像解析demo)
- [接入准备](#接入准备)
- [多账号接入](#多账号接入)
- [Docker部署](#docker部署)
- [Docker-compose部署](#docker-compose部署)
- [Render部署](#render部署)
- [Vercel部署](#vercel部署)
- [原生部署](#原生部署)
- [推荐使用客户端](#推荐使用客户端)
- [接口列表](#接口列表)
- [对话补全](#对话补全)
- [创建语音](#创建语音)
- [官方发音人](#官方发音人)
- [克隆发音人](#克隆发音人)
- [自定义发音人映射](#自定义发音人映射)
- [创建转录](#创建转录)
- [文档解读](#文档解读)
- [图像解析](#图像解析)
- [\_token存活检测](#_token存活检测)
- [注意事项](#注意事项)
- [Nginx反代优化](#nginx反代优化)
- [Token统计](#token统计)
- [Star History](#star-history)

## 免责声明

Expand Down Expand Up @@ -127,25 +138,25 @@ ZhipuAI (智谱清言) 接口转API [glm-free-api](https://github.com/LLM-Red-Te
拉取镜像并启动服务

```shell
docker run -it -d --init --name hailuo-free-api -p 8000:8000 -e TZ=Asia/Shanghai vinlic/hailuo-free-api:latest
docker run -it -d --init --name minimax-free-api -p 8000:8000 -e TZ=Asia/Shanghai vinlic/minimax-free-api:latest
```

查看服务实时日志

```shell
docker logs -f hailuo-free-api
docker logs -f minimax-free-api
```

重启服务

```shell
docker restart hailuo-free-api
docker restart minimax-free-api
```

停止服务

```shell
docker stop hailuo-free-api
docker stop minimax-free-api
```

### Docker-compose部署
Expand All @@ -154,9 +165,9 @@ docker stop hailuo-free-api
version: '3'

services:
hailuo-free-api:
container_name: hailuo-free-api
image: vinlic/hailuo-free-api:latest
minimax-free-api:
container_name: minimax-free-api
image: vinlic/minimax-free-api:latest
restart: always
ports:
- "8000:8000"
Expand Down Expand Up @@ -186,8 +197,8 @@ services:
```shell
npm i -g vercel --registry http://registry.npmmirror.com
vercel login
git clone https://github.com/LLM-Red-Team/hailuo-free-api
cd hailuo-free-api
git clone https://github.com/LLM-Red-Team/minimax-free-api
cd minimax-free-api
vercel --prod
```

Expand Down Expand Up @@ -218,25 +229,25 @@ npm run build
启动服务

```shell
pm2 start dist/index.js --name "hailuo-free-api"
pm2 start dist/index.js --name "minimax-free-api"
```

查看服务实时日志

```shell
pm2 logs hailuo-free-api
pm2 logs minimax-free-api
```

重启服务

```shell
pm2 reload hailuo-free-api
pm2 reload minimax-free-api
```

停止服务

```shell
pm2 stop hailuo-free-api
pm2 stop minimax-free-api
```

## 推荐使用客户端
Expand Down Expand Up @@ -572,7 +583,7 @@ Authorization: Bearer [_token]

### Nginx反代优化

如果您正在使用Nginx反向代理hailuo-free-api,请添加以下配置项优化流的输出效果,优化体验感。
如果您正在使用Nginx反向代理minimax-free-api,请添加以下配置项优化流的输出效果,优化体验感。

```nginx
# 关闭代理缓冲。当设置为off时,Nginx会立即将客户端请求发送到后端服务器,并立即将从后端服务器接收到的响应发送回客户端。
Expand All @@ -589,8 +600,8 @@ keepalive_timeout 120;

### Token统计

由于推理侧不在hailuo-free-api,因此token不可统计,将以固定数字返回。
由于推理侧不在minimax-free-api,因此token不可统计,将以固定数字返回。

## Star History

[![Star History Chart](https://api.star-history.com/svg?repos=LLM-Red-Team/hailuo-free-api&type=Date)](https://star-history.com/#LLM-Red-Team/hailuo-free-api&Date)
[![Star History Chart](https://api.star-history.com/svg?repos=LLM-Red-Team/minimax-free-api&type=Date)](https://star-history.com/#LLM-Red-Team/minimax-free-api&Date)
2 changes: 1 addition & 1 deletion configs/dev/service.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 服务名称
name: hailuo-free-api
name: minimax-free-api
# 服务绑定主机地址
host: '0.0.0.0'
# 服务绑定端口
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "hailuo-free-api",
"name": "minimax-free-api",
"version": "0.0.18",
"description": "HailuoAI Free API Server",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion public/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<title>🚀 服务已启动</title>
</head>
<body>
<p>hailuo-free-api已启动!<br>请通过LobeChat / NextChat / Dify等客户端或OpenAI SDK接入!</p>
<p>minimax-free-api已启动!<br>请通过LobeChat / NextChat / Dify等客户端或OpenAI SDK接入!</p>
</body>
</html>
10 changes: 5 additions & 5 deletions src/api/routes/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ export default {
{
"id": "abab6-chat",
"object": "model",
"owned_by": "hailuo-free-api"
"owned_by": "minimax-free-api"
},
{
"id": "abab5.5s-chat",
"object": "model",
"owned_by": "hailuo-free-api"
"owned_by": "minimax-free-api"
},
{
"id": "abab5.5-chat",
"object": "model",
"owned_by": "hailuo-free-api"
"owned_by": "minimax-free-api"
},
{
"id": "abab-v1",
"object": "model",
"owned_by": "hailuo-free-api"
"owned_by": "minimax-free-api"
},
{
"id": "abab-v1-vision",
"object": "model",
"owned_by": "hailuo-free-api"
"owned_by": "minimax-free-api"
}
]
};
Expand Down
2 changes: 1 addition & 1 deletion src/lib/configs/service-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class ServiceConfig {

constructor(options?: any) {
const { name, host, port, urlPrefix, bindAddress } = options || {};
this.name = _.defaultTo(name, 'hailuo-free-api');
this.name = _.defaultTo(name, 'minimax-free-api');
this.host = _.defaultTo(host, '0.0.0.0');
this.port = _.defaultTo(port, 5566);
this.urlPrefix = _.defaultTo(urlPrefix, '');
Expand Down

0 comments on commit d442b44

Please sign in to comment.