test/ 调整prompt,提高共情能力

This commit is contained in:
Kevin
2026-04-08 17:10:09 +08:00
parent 78b61c076e
commit 2a0c80987d
8 changed files with 113 additions and 85 deletions

View File

@@ -200,6 +200,7 @@ async def websocket_endpoint(
grew_up_place=user.grew_up_place,
occupation=user.occupation,
)
era_place = (user.grew_up_place or user.birth_place or "") or ""
opening_messages = (
await chat_orchestrator.generate_opening_message(
conversation_id=conversation_id,
@@ -209,6 +210,8 @@ async def websocket_endpoint(
user.occupation
),
occupation=user.occupation or "",
profile_birth_year=user.birth_year,
profile_era_place=era_place,
)
)
ai_msg_id = await ConversationHistoryStore(