update-team
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUpdate Team
更新团队
Update an existing team on a live LiteLLM proxy.
在运行中的LiteLLM代理上更新现有团队。
Setup
配置
LITELLM_BASE_URL — e.g. https://my-proxy.example.com
LITELLM_API_KEY — proxy admin keyAPI reference: https://litellm.vercel.app/docs/proxy/team_based_routing
LITELLM_BASE_URL — 示例:https://my-proxy.example.com
LITELLM_API_KEY — 代理管理员密钥Ask the user
询问用户信息
- team_id (required) — if they don't have it, list teams first:
bash
curl -s "$BASE/team/list" -H "Authorization: Bearer $KEY" - What to change — any combination of:
- (string)
team_alias - (float)
max_budget - (list)
models - /
tpm_limit(int)rpm_limit - (bool — blocks all requests from this team)
blocked
- team_id(必填)—— 如果用户没有该ID,先列出所有团队:
bash
curl -s "$BASE/team/list" -H "Authorization: Bearer $KEY" - 要修改的内容—— 可组合修改以下任意项:
- (字符串)
team_alias - (浮点数)
max_budget - (列表)
models - /
tpm_limit(整数)rpm_limit - (布尔值 —— 阻止该团队的所有请求)
blocked
Run
执行操作
bash
curl -s -X POST "$BASE/team/update" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{
"team_id": "<team_id>",
"max_budget": <value>,
"models": [<models>],
"tpm_limit": <value>
}'Only include the fields being changed.
bash
curl -s -X POST "$BASE/team/update" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{
"team_id": "<team_id>",
"max_budget": <value>,
"models": [<models>],
"tpm_limit": <value>
}'仅包含需要修改的字段。
Output
输出
Show the updated , , , .
team_idteam_aliasmax_budgetmodels展示更新后的、、、。
team_idteam_aliasmax_budgetmodels