resolve test failure caused by renamed sqlite_database module

This commit is contained in:
Lincoln Stein 2023-12-10 12:59:00 -05:00
parent d7f7fbc8c2
commit 3b1ff4a7f4
2 changed files with 3 additions and 2 deletions

View File

@ -6,7 +6,7 @@ from pathlib import Path
from typing import Any, Dict, List, Literal, Optional, Union
from fastapi import Body
from pydantic import BaseModel, Field, TypeAdapter, field_validator
from pydantic import BaseModel, Field, field_validator
from pydantic.networks import AnyHttpUrl
from typing_extensions import Annotated
@ -124,6 +124,7 @@ class URLModelSource(StringLikeSource):
ModelSource = Annotated[Union[LocalModelSource, HFModelSource, URLModelSource], Body(discriminator="type")]
class ModelInstallJob(BaseModel):
"""Object that tracks the current status of an install request."""

View File

@ -18,7 +18,7 @@ from invokeai.app.services.model_install import (
ModelInstallServiceBase,
)
from invokeai.app.services.model_records import ModelRecordServiceBase, ModelRecordServiceSQL, UnknownModelException
from invokeai.app.services.shared.sqlite import SqliteDatabase
from invokeai.app.services.shared.sqlite.sqlite_database import SqliteDatabase
from invokeai.backend.model_manager.config import BaseModelType, ModelType
from invokeai.backend.util.logging import InvokeAILogger