浏览代码

fix: remove validate credentials

Yeuoly 6 月之前
父节点
当前提交
048e8cf0d1
共有 1 个文件被更改,包括 0 次插入12 次删除
  1. 0 12
      api/core/model_runtime/model_providers/__base/ai_model.py

+ 0 - 12
api/core/model_runtime/model_providers/__base/ai_model.py

@@ -1,5 +1,4 @@
 import decimal
-from abc import abstractmethod
 from typing import Optional
 
 from pydantic import BaseModel, ConfigDict, Field
@@ -38,17 +37,6 @@ class AIModel(BaseModel):
     # pydantic configs
     model_config = ConfigDict(protected_namespaces=())
 
-    @abstractmethod
-    def validate_credentials(self, model: str, credentials: dict) -> None:
-        """
-        Validate model credentials
-
-        :param model: model name
-        :param credentials: model credentials
-        :return:
-        """
-        raise NotImplementedError
-
     @property
     def _invoke_error_mapping(self) -> dict[type[Exception], list[type[Exception]]]:
         """