Skip to content

Commit

Permalink
Merge pull request #1 from hanfangyuan4396/gh-pages
Browse files Browse the repository at this point in the history
feat: integrate all free api with one docker compose
  • Loading branch information
Vinlic authored Jun 1, 2024
2 parents aa6c16c + 3385c72 commit f1855dc
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/freeapi/integrate/integrate.md
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

0 comments on commit f1855dc

Please sign in to comment.