Pārlūkot izejas kodu

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

tags/1.0.1
Yingchun Lai pirms 8 mēnešiem
vecāks
revīzija
7259c0d69f
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam

+ 1
- 6
api/core/model_runtime/model_providers/__base/ai_model.py Parādīt failu

:param credentials: model credentials :param credentials: model credentials
:return: model schema :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) schema = self.get_customizable_model_schema(model, credentials)

if not schema: if not schema:
return None return None



Notiek ielāde…
Atcelt
Saglabāt