世界书部分基本完成

This commit is contained in:
2026-04-07 01:56:13 +08:00
parent e8dedb5ec4
commit 4f9cf4b725
10 changed files with 2505 additions and 862 deletions

View File

@@ -1,7 +1,23 @@
import logging
import sys
# 配置日志
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
handlers=[
logging.StreamHandler(sys.stdout)
]
)
# 确保所有模块的日志都能被捕获
for logger_name in ['uvicorn', 'uvicorn.access', 'fastapi']:
logging_logger = logging.getLogger(logger_name)
logging_logger.setLevel(logging.INFO)
# backend/app/main.py
from fastapi import FastAPI
from .api.route import router
app = FastAPI(title="LLM Workflow Engine")
# 注册路由