Update README.md

This commit is contained in:
Krish Dholakia 2023-10-26 16:22:12 -07:00 committed by GitHub
parent c6c6d4396a
commit 5230a683e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ curl http://0.0.0.0:8000/v1/chat/completions \
- `/router/completions` - for multiple deployments of the same model (e.g. Azure OpenAI), uses the least used deployment. [Learn more](https://docs.litellm.ai/docs/routing)
- `/models` - available models on server
### Running Locally
## Running Locally
```shell
$ git clone https://github.com/BerriAI/litellm.git
```
@ -46,3 +46,17 @@ $ cd ./litellm/litellm_server
```shell
$ uvicorn main:app --host 0.0.0.0 --port 8000
```
### Custom Config
1. Create + Modify router_config.yaml (save your azure/openai/etc. deployment info)
```shell
cp ./router_config_template.yaml ./router_config.yaml
```
2. Build Docker Image
```shell
docker build -t litellm_server . --build-arg CONFIG_FILE=./router_config.yaml
```
3. Run Docker Image
```shell
docker run --name litellm-proxy -e PORT=8000 -p 8000:8000 litellm_server
```