fix: can not find model bug (#12051)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
yihong 2024-12-25 08:42:52 +08:00 committed by GitHub
commit 7da4fb68da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,6 @@ from configs import dify_config
from core.entities.model_entities import (
ModelWithProviderEntity,
ProviderModelWithStatusEntity,
SimpleModelProviderEntity,
)
from core.entities.provider_entities import QuotaConfiguration
from core.model_runtime.entities.common_entities import I18nObject
@ -152,7 +151,8 @@ class ModelWithProviderEntityResponse(ModelWithProviderEntity):
Model with provider entity.
"""
provider: SimpleModelProviderEntity
# FIXME type error ignore here
provider: SimpleProviderEntityResponse # type: ignore
def __init__(self, model: ModelWithProviderEntity) -> None:
super().__init__(**model.model_dump())