-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: integrate all free api with one docker compose
- Loading branch information
1 parent
aa6c16c
commit 3385c72
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# one-free-api | ||
使用docker compose一键启动所有free-api系列服务,嵌入nginx统一服务访问入口。 | ||
|
||
## 启动服务 | ||
|
||
```sh | ||
git clone https://github.com/hanfangyuan4396/one-free-api.git | ||
cd one-free-api | ||
docker-compose up -d | ||
``` | ||
|
||
## 访问服务 | ||
|
||
url中只需增加对应的**服务名前缀**,其他与原free-api服务一致。 | ||
|
||
例如: | ||
- kimi对话接口: /kimi/v1/chat/completions | ||
- glm画图接口: /glm/v1/images/generations | ||
- hailuo语音接口: /hailuo/v1/audio/speech | ||
|
||
## openai api base | ||
接入兼容openai格式客户端的时候,注意在**api base**中增加对应的**前缀**,例如 http://host:port/kimi 。 |