소스 검색

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

tags/1.0.1
Yingchun Lai 8 달 전
부모
커밋
7259c0d69f
No account linked to committer's email address
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


Loading…
취소
저장