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

This commit is contained in:
Yingchun Lai 2025-03-01 22:56:13 +08:00 committed by GitHub
parent ce2dd22bd7
commit 7259c0d69f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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