diff --git a/.idea/llm-workflow-engine.iml b/.idea/llm-workflow-engine.iml index b28b586..0831b2c 100644 --- a/.idea/llm-workflow-engine.iml +++ b/.idea/llm-workflow-engine.iml @@ -4,6 +4,7 @@ + diff --git a/backend/api/route.py b/backend/api/route.py index e71f88e..6eb8759 100644 --- a/backend/api/route.py +++ b/backend/api/route.py @@ -1,5 +1,5 @@ from fastapi import APIRouter -from .routes import presetsRoute, chatsRoute, worldbooksRoute +from .routes import presetsRoute, chatsRoute, worldbooksRoute, apiConfigRoute from utils.file_utils import get_all_roles_and_chats from core.config import settings from pathlib import Path @@ -10,6 +10,7 @@ router = APIRouter() router.include_router(presetsRoute.router) router.include_router(chatsRoute.router) router.include_router(worldbooksRoute.router) +router.include_router(apiConfigRoute.router) # 保留原有的其他路由 diff --git a/backend/requirements.txt b/backend/requirements.txt index e7ce448..516b4f9 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -1,6 +1,8 @@ fastapi==0.104.1 uvicorn[standard]==0.24.0 python-multipart==0.0.6 +cryptography>=41.0.0 +requests>=2.31.0 # LangChain for LLM integration (让 pip 自动解析兼容版本) langchain>=0.1.0 diff --git a/frontend/src/components/ToolBar/CurrentUserRole/CurrentUserRole.css b/frontend/src/components/ToolBar/CurrentUserRole/CurrentUserRole.css deleted file mode 100644 index e9d38e1..0000000 --- a/frontend/src/components/ToolBar/CurrentUserRole/CurrentUserRole.css +++ /dev/null @@ -1,80 +0,0 @@ -.current-user-role { - padding: 16px; - display: flex; - flex-direction: column; - gap: 16px; -} - -.role-form { - display: flex; - flex-direction: column; - gap: 12px; -} - -.form-group { - display: flex; - flex-direction: column; - gap: 6px; -} - -.form-group label { - font-size: 14px; - font-weight: 500; - color: #e0e0e0; -} - -.form-group input, -.form-group textarea { - padding: 8px 12px; - border: 1px solid #444; - border-radius: 6px; - background-color: #2a2a2a; - color: #ffffff; - font-size: 14px; - transition: border-color 0.2s; -} - -.form-group input:focus, -.form-group textarea:focus { - outline: none; - border-color: #6c63ff; -} - -.form-group textarea { - resize: vertical; - font-family: inherit; -} - -.role-preview { - margin-top: 8px; - padding: 12px; - background-color: #2a2a2a; - border-radius: 8px; - border: 1px solid #444; -} - -.preview-title { - font-size: 12px; - color: #999; - margin-bottom: 8px; - text-transform: uppercase; -} - -.preview-content { - display: flex; - flex-direction: column; - gap: 8px; -} - -.preview-name { - font-size: 16px; - font-weight: 600; - color: #6c63ff; -} - -.preview-description { - font-size: 14px; - color: #cccccc; - line-height: 1.5; - white-space: pre-wrap; -} \ No newline at end of file