refactor: moved registries into a separate module and code cleanup
fix: refactored dial provider to follow the same pattern
This commit is contained in:
@@ -4,11 +4,12 @@ import logging
|
||||
|
||||
from utils.env import get_env
|
||||
|
||||
from .custom_registry import CustomEndpointModelRegistry
|
||||
from .openai_compatible import OpenAICompatibleProvider
|
||||
from .openrouter_registry import OpenRouterModelRegistry
|
||||
from .registries.custom import CustomEndpointModelRegistry
|
||||
from .registries.openrouter import OpenRouterModelRegistry
|
||||
from .shared import ModelCapabilities, ProviderType
|
||||
|
||||
|
||||
class CustomProvider(OpenAICompatibleProvider):
|
||||
"""Adapter for self-hosted or local OpenAI-compatible endpoints.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user