docs: update readme
This commit is contained in:
parent
d12d7ae50d
commit
32fdfd1be9
@ -70,13 +70,13 @@ _✨ All in one 的 OpenAI 接口,整合各种 API 访问方式,开箱即用
|
|||||||
```shell
|
```shell
|
||||||
git clone https://github.com/songquanpeng/one-api.git
|
git clone https://github.com/songquanpeng/one-api.git
|
||||||
|
|
||||||
# 先构建 Web 前端产物
|
# 构建前端
|
||||||
cd one-api/web
|
cd one-api/web
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
# 再构建 Go 后端
|
# 构建后端
|
||||||
cd .. # 回到项目根目录 `one-api`
|
cd ..
|
||||||
go mod download
|
go mod download
|
||||||
go build -ldflags "-s -w" -o one-api
|
go build -ldflags "-s -w" -o one-api
|
||||||
````
|
````
|
||||||
|
Loading…
Reference in New Issue
Block a user