update-team

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Update 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 key
LITELLM_BASE_URL  — 示例:https://my-proxy.example.com
LITELLM_API_KEY   — 代理管理员密钥

Ask the user

询问用户信息

  1. team_id (required) — if they don't have it, list teams first:
    bash
    curl -s "$BASE/team/list" -H "Authorization: Bearer $KEY"
  2. What to change — any combination of:
    • team_alias
      (string)
    • max_budget
      (float)
    • models
      (list)
    • tpm_limit
      /
      rpm_limit
      (int)
    • blocked
      (bool — blocks all requests from this team)
  1. team_id(必填)—— 如果用户没有该ID,先列出所有团队:
    bash
    curl -s "$BASE/team/list" -H "Authorization: Bearer $KEY"
  2. 要修改的内容—— 可组合修改以下任意项:
    • 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_id
,
team_alias
,
max_budget
,
models
.
展示更新后的
team_id
team_alias
max_budget
models