Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: can not find model bug (#12051)
yihong7da4fb68da06
diff --git a/api/core/entities/provider_configuration.py b/api/core/entities/provider_configuration.pyindex 2e27b362d30..bff5a0ec9c6 100644--- a/api/core/entities/provider_configuration.py+++ b/api/core/entities/provider_configuration.py@@ -872,7 +872,7 @@ class ProviderConfiguration(BaseModel):# if llm name not in restricted llm list, remove itrestrict_model_names = [rm.model for rm in restrict_models]for model in provider_models:- if model.model_type == ModelType.LLM and m.model not in restrict_model_names:+ if model.model_type == ModelType.LLM and model.model not in restrict_model_names:model.status = ModelStatus.NO_PERMISSIONelif not quota_configuration.is_valid:model.status = ModelStatus.QUOTA_EXCEEDEDdiff --git a/api/services/entities/model_provider_entities.py b/api/services/entities/model_provider_entities.pyindex 334d009ee5f..f1417c6cb94 100644--- a/api/services/entities/model_provider_entities.py+++ b/api/services/entities/model_provider_entities.py@@ -7,7 +7,6 @@ from configs import dify_configfrom core.entities.model_entities import (ModelWithProviderEntity,ProviderModelWithStatusEntity,- SimpleModelProviderEntity,)from core.entities.provider_entities import QuotaConfigurationfrom 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: ignoredef __init__(self, model: ModelWithProviderEntity) -> None:super().__init__(**model.model_dump())