Something went wrong. Try again.
sloproxy
Something went wrong. Try again.
fix(registry): Fix provider change logic for new models master
When a client changed its provider and registered a new model in the same `RegisterClient` call, the logic would incorrectly attempt to decrement the provider count for the new model from the old provider. This was because the loop iterated over all new model IDs without checking if they were part of the client's previous registration. This commit adds a check to ensure that a model existed in the client's old model set before attempting to decrement the old provider's usage count. This prevents incorrect state updates in the registry during provider transitions that also introduce new models.
Author hkfires Date (Sep 26, 2025, 10:32 AM UTC) Commit 63af4c55 63af4c551d19e088bc7a05ea8f8b0f3e93ebe41e Parent c675cf5e c675cf5e722ece075cde8cebb3b538b7838a196b