添加 Copilot 聊天流式响应接口及测试

This commit is contained in:
2026-03-24 11:22:00 +08:00
parent 21dd393aee
commit c184610035
6 changed files with 141 additions and 24 deletions
+2 -2
View File
@@ -1,6 +1,7 @@
from fastapi import APIRouter
from app.api.v1.endpoints import (
auth,
copilot,
project,
simulation,
scada,
@@ -18,7 +19,6 @@ from app.api.v1.endpoints import (
user_management, # 新增:用户管理
audit, # 新增:审计日志
meta,
copilot_chat,
)
from app.api.v1.endpoints.network import (
general,
@@ -113,4 +113,4 @@ api_router.include_router(project_data.router, tags=["Project Data"])
api_router.include_router(extension.router, tags=["Extension"])
# Copilot Chat
api_router.include_router(copilot_chat.router, prefix="/copilot", tags=["Copilot"])
api_router.include_router(copilot.router, prefix="/copilot", tags=["Copilot"])