mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
(docs) proxy
This commit is contained in:
parent
255c0fab1d
commit
0e9446f213
1 changed files with 21 additions and 18 deletions
|
|
@ -59,6 +59,27 @@ $ export HUGGINGFACE_API_KEY=my-api-key #[OPTIONAL]
|
|||
$ litellm --model huggingface/<your model name> --api_base https://k58ory32yinf1ly0.us-east-1.aws.endpoints.huggingface.cloud
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="azure" label="Azure OpenAI">
|
||||
|
||||
```shell
|
||||
$ export AZURE_API_KEY=my-api-key
|
||||
$ export AZURE_API_BASE=my-api-base
|
||||
```
|
||||
```
|
||||
$ litellm --model azure/my-deployment-name
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="openai-proxy" label="OpenAI">
|
||||
|
||||
```shell
|
||||
$ export OPENAI_API_KEY=my-api-key
|
||||
```
|
||||
|
||||
```shell
|
||||
$ litellm --model gpt-3.5-turbo
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="anthropic" label="Anthropic">
|
||||
|
||||
|
|
@ -77,12 +98,6 @@ Assuming you're running vllm locally
|
|||
$ litellm --model vllm/facebook/opt-125m
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="openai-proxy" label="OpenAI Compatible Server">
|
||||
|
||||
```shell
|
||||
$ litellm --model openai/<model_name> --api_base <your-api-base>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="together_ai" label="TogetherAI">
|
||||
|
||||
```shell
|
||||
|
|
@ -125,18 +140,6 @@ $ litellm --model palm/chat-bison
|
|||
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="azure" label="Azure OpenAI">
|
||||
|
||||
```shell
|
||||
$ export AZURE_API_KEY=my-api-key
|
||||
$ export AZURE_API_BASE=my-api-base
|
||||
```
|
||||
```
|
||||
$ litellm --model azure/my-deployment-name
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="ai21" label="AI21">
|
||||
|
||||
```shell
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue