fix: 修复前后端启动问题,添加 BACKEND_PORT 配置
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Has been cancelled

This commit is contained in:
2026-04-22 01:34:34 +08:00
parent a869d884b7
commit d8da45bc97
12 changed files with 26 additions and 21 deletions

View File

@@ -3,7 +3,7 @@ AI Agent 前端模块
采用分层架构设计包含配置、状态、API客户端和UI组件
"""
from .logger import debug, info, warning, error
from logger import debug, info, warning, error
__version__ = "2.0.0"
__all__ = ["debug", "info", "warning", "error"]

View File

@@ -8,8 +8,8 @@ from typing import List, Dict, Any, Generator
import requests
# 使用相对导入
from .config import config
from .logger import error, warning
from config import config
from logger import error, warning
class APIClient:

View File

@@ -6,10 +6,9 @@
import re
import streamlit as st
# 使用相对导入
from ..state import AppState
from ..api_client import api_client
from ..config import config
from state import AppState
from api_client import api_client
from config import config
def render_chat_area():

View File

@@ -5,8 +5,7 @@
import streamlit as st
# 使用相对导入
from ..state import AppState
from state import AppState
def render_info_panel():

View File

@@ -6,9 +6,8 @@
import streamlit as st
from datetime import datetime
# 使用相对导入
from ..state import AppState
from ..api_client import api_client
from state import AppState
from api_client import api_client
def render_sidebar():
"""渲染左侧栏"""

View File

@@ -4,7 +4,7 @@
"""
import os
from .config import config
from config import config
import logging
from typing import Any
from dotenv import load_dotenv

View File

@@ -7,7 +7,7 @@ import uuid
from typing import List, Dict, Any
import streamlit as st
from .config import config
from config import config
class AppState: