chore: retire legacy wolai backend runtime

This commit is contained in:
lix-2026
2026-05-28 22:02:10 +08:00
parent 39b9a0183a
commit 1109e3c0d8
31 changed files with 21 additions and 5785 deletions
+3 -14
View File
@@ -15,21 +15,10 @@ class Settings(BaseSettings):
env_file=str(ENV_ALL_PATH), env_file_encoding="utf-8", extra="ignore"
)
# 说明:项目迁移到 Convex 的过程中,后端可能暂时不依赖 Supabase。
# 因此这里给出空字符串默认值,避免本地未配置 .env 时无法启动开发服务器。
supabase_url: str = ""
supabase_service_role_key: str = ""
redis_url: str = "redis://localhost:6379/0"
frontend_url: str = "http://localhost:3000"
openai_api_key: str = ""
mnote_ai_default_model: str = ""
mnote_ai_orchestrator_api_key: str = ""
openai_agents_session_db_path: str = ""
lightrag_db_url: str = ""
lightrag_collection: str = "wolai-docs"
@lru_cache
@lru_cache
def get_settings() -> Settings:
"""惰性实例化设置,避免重复读取文件。"""
return Settings()