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"> <project version="4">
<component name="ProjectModuleManager"> <component name="ProjectModuleManager">
<modules> <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> </modules>
</component> </component>
</project> </project>

View File

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

View File

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