mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-15 23:31:29 +00:00
Deleting a team cascade-deletes its keys, so `terraform apply -replace` on a team left the key's `/key/update` 404ing and aborted the apply with the key resource stuck. The update now confirms the key is really gone and recreates it under the new team; a `team_id` change between two live teams stays an in-place update, and an unrelated failure still errors out. Rebased onto current staging, which added a typed `apiError` and `isNotFound`, so the recovery matches on the status code plus a re-read rather than on the error string. The metadata pre-read, which fails before `/key/update` is ever reached when the key is gone, routes through the same recovery. Original work by @matthowardcohere in #39747. Claude-Session: https://claude.ai/code/session_01XT1qsbjLwnhiN5sQ2hNUxr |
||
|---|---|---|
| .. | ||
| litellm | ||
| provider | ||