fix: report provider test upstream errors
This commit is contained in:
@@ -348,6 +348,14 @@ class BaseLLMProvider(ABC):
|
||||
模型列表,格式与 get_default_models 一致
|
||||
"""
|
||||
return []
|
||||
|
||||
async def fetch_models_from_api_strict(self) -> List[Dict[str, Any]]:
|
||||
"""
|
||||
严格拉取模型列表,用于连接测试。
|
||||
|
||||
子类可在这里保留上游异常,让调用方给出明确错误原因。
|
||||
"""
|
||||
return await self.fetch_models_from_api()
|
||||
|
||||
@classmethod
|
||||
def get_default_models(cls) -> List[Dict[str, Any]]:
|
||||
|
||||
Reference in New Issue
Block a user