registerOrReplace<T extends ChatCapability> static method

void registerOrReplace<T extends ChatCapability>(
  1. LLMProviderFactory<T> factory
)

Register a provider factory, replacing any existing one with the same ID

factory - The factory to register

Implementation

static void registerOrReplace<T extends ChatCapability>(
    LLMProviderFactory<T> factory) {
  _factories[factory.providerId] = factory;
}