'commit'
This commit is contained in:
2
dsSchoolBuddy/.idea/modules.xml
generated
2
dsSchoolBuddy/.idea/modules.xml
generated
@@ -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>
|
@@ -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):
|
||||
"""
|
||||
根据用户输入的语句,查询相关历史对话
|
||||
然后调用大模型进行回答
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user