Description
When a new provider is added to an existing Forge key, the allowed provider list does not update properly. As a result, models from the newly added provider are not included in the response from the List Models API.
It might have something to do with the underlying cache mechanism
Steps to Reproduce
-
Call the List Models API using a Forge key that has one or more providers configured.
-
Add a new provider to that Forge key.
-
Call the List Models API again using the same key.
Expected Result
Models from the newly added provider should be included in the response.
Actual Result
Models from the new provider do not appear in the API response.