forked from phoenix/litellm-mirror
docs(simple_proxy.md): adding librechat tutorial to docs
This commit is contained in:
parent
e5ce45dc2c
commit
03fb143a87
1 changed files with 26 additions and 2 deletions
|
@ -235,7 +235,7 @@ $ litellm --model command-nightly
|
||||||
|
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
<!--
|
|
||||||
## Using with OpenAI compatible projects
|
## Using with OpenAI compatible projects
|
||||||
Set `base_url` to the LiteLLM Proxy server
|
Set `base_url` to the LiteLLM Proxy server
|
||||||
|
|
||||||
|
@ -359,7 +359,31 @@ result = experts(query='How can I be more productive?')
|
||||||
print(result)
|
print(result)
|
||||||
```
|
```
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</Tabs> -->
|
<TabItem value="librechat" label="LibreChat">
|
||||||
|
|
||||||
|
#### 1. Clone the repo
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git clone https://github.com/danny-avila/LibreChat.git
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
#### 2. Modify `docker-compose.yml`
|
||||||
|
```yaml
|
||||||
|
OPENAI_REVERSE_PROXY=http://host.docker.internal:8000/v1/chat/completions
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 3. Save fake OpenAI key in `.env`
|
||||||
|
```env
|
||||||
|
OPENAI_API_KEY=sk-1234
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 4. Run LibreChat:
|
||||||
|
```shell
|
||||||
|
docker compose up
|
||||||
|
```
|
||||||
|
</TabItem>
|
||||||
|
</Tabs>
|
||||||
|
|
||||||
## Proxy Configs
|
## Proxy Configs
|
||||||
The Config allows you to set the following params
|
The Config allows you to set the following params
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue