mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 04:50:52 +08:00
Previously, if an OpenAI compatibility configuration was removed from the config file or its model list was emptied, the associated models for that auth entry were not unregistered from the global model registry. This resulted in stale registrations persisting. This change ensures that when an auth entry is identified as being for a compatibility provider, its models are explicitly unregistered if: - The corresponding configuration is found but has an empty model list. - The corresponding configuration is no longer found in the config file.