Like a power adapter — same interface, works with different country outlets.
Define a common interface (ABC) with a complete() method. Any provider implements this interface. Business logic calls complete() without knowing which provider.
> LLMProvider.complete(system, user) → str > Any implementation handles the details > Business logic remains unchanged when switching providers
Like a power adapter — same interface, works with different country outlets.
Define a common interface (ABC) with a complete() method. Any provider implements this interface. Business logic calls complete() without knowing which provider.
> LLMProvider.complete(system, user) → str > Any implementation handles the details > Business logic remains unchanged when switching providers
Sign in to cast your vote
Sign in to share your feedback and join the discussion.