diff --git a/invokeai/backend/model_manager/config.py b/invokeai/backend/model_manager/config.py index 684cbcfc6f..9342ef3230 100644 --- a/invokeai/backend/model_manager/config.py +++ b/invokeai/backend/model_manager/config.py @@ -255,7 +255,6 @@ class ModelConfigBase(ABC, BaseModel): source: str = Field(description="The original source of the model (path, URL or repo_id).") source_type: ModelSourceType = Field(description="The type of source") - hash_algo: Optional[HASHING_ALGORITHMS] = Field(description="The algorithm used to compute the hash.", default=None) description: Optional[str] = Field(description="Model description", default=None) source_api_response: Optional[str] = Field( description="The original API response from the source, as stringified JSON.", default=None diff --git a/tests/test_model_probe.py b/tests/test_model_probe.py index 09a30b10c8..23e0b3bf4d 100644 --- a/tests/test_model_probe.py +++ b/tests/test_model_probe.py @@ -186,9 +186,7 @@ def test_serialisation_roundtrip(): } factory = ModelFactory.create_factory(config_cls, **factory_args) - configs_with_random_data = [ - factory.build() for _ in range(trials_per_class) - ] + configs_with_random_data = [factory.build() for _ in range(trials_per_class)] for config in configs_with_random_data: as_json = config.model_dump_json()