mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
docs(custom_auth.md): add virtual keys doc
This commit is contained in:
parent
0fb7c01382
commit
047b106197
1 changed files with 21 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
You can now override the default api key auth.
|
||||
|
||||
Here's how:
|
||||
## Usage
|
||||
|
||||
#### 1. Create a custom auth file.
|
||||
|
||||
|
|
@ -46,3 +46,23 @@ general_settings:
|
|||
```shell
|
||||
$ litellm --config /path/to/config.yaml
|
||||
```
|
||||
|
||||
## ✨ Support LiteLLM Virtual Keys + Custom Auth
|
||||
|
||||
Supported from v1.72.2+
|
||||
|
||||
:::info
|
||||
|
||||
✨ Supporting Custom Auth + LiteLLM Virtual Keys is on LiteLLM Enterprise
|
||||
|
||||
[Enterprise Pricing](https://www.litellm.ai/#pricing)
|
||||
|
||||
[Get free 7-day trial key](https://www.litellm.ai/enterprise#trial)
|
||||
:::
|
||||
|
||||
```yaml
|
||||
general_settings:
|
||||
custom_auth: custom_auth_auto.user_api_key_auth
|
||||
custom_auth_settings:
|
||||
mode: "auto" # can be 'on', 'off', 'auto' - 'auto' checks both litellm api key auth + custom auth
|
||||
```
|
||||
Loading…
Add table
Reference in a new issue