diff --git a/dsLightRag/Routes/QA.py b/dsLightRag/Routes/QA.py index b79d1af4..51c8885e 100644 --- a/dsLightRag/Routes/QA.py +++ b/dsLightRag/Routes/QA.py @@ -14,7 +14,7 @@ from Config import Config from ElasticSearch.Utils.EsSearchUtil import EsSearchUtil # 创建路由路由器 -router = APIRouter(prefix="/qa", tags=["答疑"]) +router = APIRouter(prefix="/api/qa", tags=["答疑"]) # 配置日志 logger = logging.getLogger(__name__) diff --git a/dsSchoolBuddy/TestStart.py b/dsSchoolBuddy/TestStart.py index b4b3a4e0..33185407 100644 --- a/dsSchoolBuddy/TestStart.py +++ b/dsSchoolBuddy/TestStart.py @@ -10,8 +10,8 @@ logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %( logger = logging.getLogger(__name__) # 服务器地址 -BASE_URL = "http://localhost:8100" -CHAT_ENDPOINT = f"{BASE_URL}/qa/chat" +BASE_URL = "http://10.10.21.20:8200" +CHAT_ENDPOINT = f"{BASE_URL}/api/qa/chat" # 用户ID(固定一个以便模拟多轮对话) USER_ID = "test_user_123"