From f2c2a6da4a865eb0d9465fcab0044b8fc5925d9c Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sat, 20 Dec 2025 00:07:42 +0800 Subject: [PATCH] chore: ruff format --- astrbot/core/provider/manager.py | 4 +++- astrbot/core/star/context.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/astrbot/core/provider/manager.py b/astrbot/core/provider/manager.py index 8e8847f12..0dff2c8ed 100644 --- a/astrbot/core/provider/manager.py +++ b/astrbot/core/provider/manager.py @@ -191,7 +191,9 @@ class ProviderManager: raise ValueError(f"Unknown provider type: {provider_type}") if not provider and provider_id: - logger.warning(f"没有找到 ID 为 {provider_id} 的提供商,这可能是由于您修改了提供商(模型)ID 导致的。") + logger.warning( + f"没有找到 ID 为 {provider_id} 的提供商,这可能是由于您修改了提供商(模型)ID 导致的。" + ) return provider diff --git a/astrbot/core/star/context.py b/astrbot/core/star/context.py index a99376773..3b666b002 100644 --- a/astrbot/core/star/context.py +++ b/astrbot/core/star/context.py @@ -268,7 +268,9 @@ class Context: """通过 ID 获取对应的 LLM Provider。""" prov = self.provider_manager.inst_map.get(provider_id) if provider_id and not prov: - logger.warning(f"没有找到 ID 为 {provider_id} 的提供商,这可能是由于您修改了提供商(模型)ID 导致的。") + logger.warning( + f"没有找到 ID 为 {provider_id} 的提供商,这可能是由于您修改了提供商(模型)ID 导致的。" + ) return prov def get_all_providers(self) -> list[Provider]: