This commit is contained in:
2025-08-19 13:50:59 +08:00
parent 74c0c22b96
commit 217f5b2266
4 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/RAG.iml" filepath="$PROJECT_DIR$/.idea/RAG.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/dsSchoolBuddy.iml" filepath="$PROJECT_DIR$/.idea/dsSchoolBuddy.iml" />
</modules>
</component>
</project>

View File

@@ -31,8 +31,8 @@ async def lifespan(_: FastAPI):
app = FastAPI(_=lifespan)
@app.post("/api/chat")
async def chat(request: fastapi.Request):
@app.post("/api/teaching_chat")
async def teaching_chat(request: fastapi.Request):
"""
根据用户输入的语句,查询相关历史对话
然后调用大模型进行回答

View File

@@ -11,7 +11,7 @@ logger = logging.getLogger(__name__)
# 服务器地址
BASE_URL = "http://localhost:8000"
CHAT_ENDPOINT = f"{BASE_URL}/api/chat"
CHAT_ENDPOINT = f"{BASE_URL}/api/teaching_chat"
# 用户ID固定一个以便模拟多轮对话
USER_ID = "test_user_123"