IP 地址过滤
信息
你需要 LiteLLM 许可证才能解锁此功能。预约时间,立即获取!
限制哪些 IP 可以调用代理端点。
general_settings:
allowed_ips: ["192.168.1.1"]
预期响应 (如果 IP 未列出)
{
"error": {
"message": "Access forbidden: IP address not allowed.",
"type": "auth_error",
"param": "None",
"code": 403
}
}