修复重构后的导入错误和缺失模块
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m26s

This commit is contained in:
2026-04-29 17:23:20 +08:00
parent 862fef94dc
commit d6805d1db8
36 changed files with 117 additions and 60 deletions

View File

@@ -4,7 +4,7 @@ FastAPI 后端 - 支持动态模型切换,使用 PostgreSQL 持久化记忆
"""
import os
from .config import DB_URI, BACKEND_PORT
from app.config import DB_URI, BACKEND_PORT
import uuid
import json
from contextlib import asynccontextmanager
@@ -28,7 +28,7 @@ from app.subgraphs.dictionary.api_client import DictionaryAPIClient
from app.subgraphs.news_analysis.api_client import NewsAPIClient
from .db.init_db import init_subgraph_tables
from .db.models import ContactRepository, DictionaryRepository, NewsRepository
from .logger import info, error
from app.logger import info, error
@asynccontextmanager
async def lifespan(app: FastAPI):