mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
docs(configs.md): add ip address filtering to docs
This commit is contained in:
parent
5d12072cc0
commit
e4105a6959
4 changed files with 30 additions and 3 deletions
|
|
@ -639,6 +639,36 @@ curl --location 'http://0.0.0.0:4000/chat/completions' \
|
|||
}'
|
||||
```
|
||||
|
||||
## ✨ IP Address Filtering
|
||||
|
||||
:::info
|
||||
|
||||
You need a LiteLLM License to unlock this feature. [Grab time](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat), to get one today!
|
||||
|
||||
:::
|
||||
|
||||
Restrict which IP's can call the proxy endpoints.
|
||||
|
||||
```yaml
|
||||
general_settings:
|
||||
allowed_ips: ["192.168.1.1"]
|
||||
```
|
||||
|
||||
**Expected Response** (if IP not listed)
|
||||
|
||||
```bash
|
||||
{
|
||||
"error": {
|
||||
"message": "Access forbidden: IP address not allowed.",
|
||||
"type": "auth_error",
|
||||
"param": "None",
|
||||
"code": 403
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
## Disable Swagger UI
|
||||
|
||||
To disable the Swagger docs from the base url, set
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue