chore: update README

This commit is contained in:
Zhiqiang Li
2023-09-21 10:42:53 +08:00
parent 65ac9a5aec
commit 728d693898

View File

@@ -67,7 +67,7 @@ docker run -d -p 8080:8080 --name=azure-openai-proxy \
# config by file # config by file
docker run -d -p 8080:8080 --name=azure-openai-proxy \ docker run -d -p 8080:8080 --name=azure-openai-proxy \
-v /path/to/config-file.yaml:/app/config/config.yaml \ -v /path/to/config.yaml:/app/config.yaml \
stulzq/azure-openai-proxy:latest stulzq/azure-openai-proxy:latest
```` ````
@@ -197,8 +197,6 @@ networks:
The configuration file supports different endpoints and API keys for each model. The configuration file supports different endpoints and API keys for each model.
config.yaml config.yaml
````yaml ````yaml
@@ -221,7 +219,20 @@ deployment_config:
api_version: "2023-03-15-preview" api_version: "2023-03-15-preview"
```` ````
By default, it reads `<workdir>/config.yaml`, and you can pass the path through the parameter `-c config.yaml`. By default, it reads `<workdir>/config.yaml`, and you can pass the path through the parameter `-c config.yaml`.
docker-compose:
````yaml
azure-openai:
image: stulzq/azure-openai-proxy
ports:
- 8080:8080
volumes:
- /path/to/config.yaml:/app/config.yaml
networks:
- chatgpt-ns
````