mcpField
U
update-model

update-model

github.com/berriaiCloud & DevOps103101 installsUpdated 25w ago
Repository

About update-model

Update Model is a skill for changing an existing model’s configuration on a live LiteLLM proxy. It guides proxy administrators through updating selected fields and offers a test call to check routing.

Key features

  1. 01Update existing model configuration
  2. 02Change credentials or API endpoint
  3. 03Set API version and model string
  4. 04List models to find an ID
  5. 05Offer a routing test call

Use cases

  1. 01Rotate model credentials
  2. 02Change a model endpoint
  3. 03Update an Azure API version
  4. 04Check that model routing still works

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/berriai/litellm-skills --skill update-model

After installing, type/update-modelin Claude Code to confirm it loaded.

Details

From the project README

Update Model

Update an existing model's configuration on a live LiteLLM proxy.

Setup

LITELLM_BASE_URL  — e.g. https://my-proxy.example.com
LITELLM_API_KEY   — proxy admin key

Ask the user

  1. model_id (required) — if they don't have it, list models first:
    curl -s "$BASE/model/info" -H "Authorization: Bearer $KEY" | python3 -c "
    import sys,json
    for m in json.load(sys.stdin).get('data',[]):
      print(m['model_info']['id'], m['model_name'])
    "
    
  2. What to change — any combination of:
    • api_key (rotate the credential)
    • api_base (change endpoint)
    • api_version (Azure)
    • model (underlying model string, e.g. azure/new-deployment)

Run

curl -s -X POST "$BASE/model/update" \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model_info": {"id": "<model_id>"},
    "litellm_params": {
      "api_key": "<new_key>",
      "api_base": "<new_base>"
    }
  }'

Only include litellm_params fields being changed.

Output

Confirm the model was updated. Offer to run a test call to verify it still routes correctly.

Comments

Markdown supported