When adding a model to a provider, the system does not check whether a model with the same ID already…
When adding a model to a provider, the system does not check whether a model with the same ID already…: a task in LegoFlow-SWE (Harbor dataset). Expected behavior: - Calling add model with a model ID that already exists in the provider should raise a ProviderError and NOT add a duplicate model. -…
The task
Expected behavior: - Calling `add_model` with a model ID that already exists in the provider should raise a `ProviderError` and NOT add a duplicate model. - After a failed duplicate add, the model list should contain only one instance of that model ID. - When calling `update_config` with values containing…
Part of Lego-X/LegoFlow-SWE.