Просмотр исходного кода

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

Yingchun Lai 1 месяц назад
Родитель
Сommit
7259c0d69f
1 измененных файлов с 1 добавлено и 6 удалено
  1. 1 6
      api/core/model_runtime/model_providers/__base/ai_model.py

+ 1 - 6
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