Skip to content

armgit / dify

Public Imported from GitHub
0

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.

fix: fix a typo of get_customizable_model_schema method name (#14449)

Yingchun Lai7259c0d69f27
diff --git a/api/core/model_runtime/model_providers/__base/ai_model.py b/api/core/model_runtime/model_providers/__base/ai_model.py
index abc8c83e19f..e79a3c01571 100644
--- a/api/core/model_runtime/model_providers/__base/ai_model.py
+++ b/api/core/model_runtime/model_providers/__base/ai_model.py
@@ -157,14 +157,9 @@ class AIModel(BaseModel):
:param credentials: model credentials
:return: model schema
"""
- return self._get_customizable_model_schema(model, credentials)
- def _get_customizable_model_schema(self, model: str, credentials: dict) -> Optional[AIModelEntity]:
- """
- Get customizable model schema and fill in the template
- """
+ # get customizable model schema
schema = self.get_customizable_model_schema(model, credentials)
-
if not schema:
return None