refactor: cleanup provider base class; cleanup shared responsibilities; cleanup public contract
docs: document provider base class refactor: cleanup custom provider, it should only deal with `is_custom` model configurations fix: make sure openrouter provider does not load `is_custom` models fix: listmodels tool cleanup
This commit is contained in:
@@ -64,6 +64,8 @@ class ModelProviderRegistry:
|
||||
"""
|
||||
instance = cls()
|
||||
instance._providers[provider_type] = provider_class
|
||||
# Invalidate any cached instance so subsequent lookups use the new registration
|
||||
instance._initialized_providers.pop(provider_type, None)
|
||||
|
||||
@classmethod
|
||||
def get_provider(cls, provider_type: ProviderType, force_new: bool = False) -> Optional[ModelProvider]:
|
||||
|
||||
Reference in New Issue
Block a user