fix: 语音消息暂存本地 修复显示异常
This commit is contained in:
@@ -928,12 +928,14 @@ async def process_user_message(
|
||||
|
||||
remaining = _get_missing_profile_fields(user)
|
||||
filled = _get_filled_profile_fields(user)
|
||||
is_from_voice = bool(segment.audio_url)
|
||||
responses = await agent.generate_profile_followup(
|
||||
conversation_id=conversation_id,
|
||||
user_message=user_message,
|
||||
missing_fields=remaining,
|
||||
filled_fields=filled,
|
||||
nickname=user.nickname or "",
|
||||
is_from_voice=is_from_voice,
|
||||
)
|
||||
|
||||
segment.agent_response = "\n\n".join(responses)
|
||||
@@ -978,11 +980,13 @@ async def process_user_message(
|
||||
)
|
||||
|
||||
try:
|
||||
is_from_voice = bool(segment.audio_url)
|
||||
responses = await agent.generate_response_with_state(
|
||||
conversation_id=conversation_id,
|
||||
user_message=user_message,
|
||||
memoir_state=state,
|
||||
user_profile_context=user_profile_context,
|
||||
is_from_voice=is_from_voice,
|
||||
)
|
||||
|
||||
segment.agent_response = "\n\n".join(responses)
|
||||
|
||||
Reference in New Issue
Block a user