0.5 缩减重构

This commit is contained in:
lix-2026
2026-04-13 19:21:42 +08:00
parent af92c4b149
commit 71fb1aee7e
2023 changed files with 21113 additions and 394493 deletions
+9 -9
View File
@@ -24,12 +24,12 @@ class Settings(BaseSettings):
openai_api_key: str = ""
lightrag_db_url: str = ""
lightrag_collection: str = "wolai-docs"
@lru_cache
def get_settings() -> Settings:
"""惰性实例化设置,避免重复读取文件。"""
return Settings()
settings = get_settings()
@lru_cache
def get_settings() -> Settings:
"""惰性实例化设置,避免重复读取文件。"""
return Settings()
settings = get_settings()