fix(chat): 解决会话报错

This commit is contained in:
sophie committed 2026-07-09 16:09:29 +08:00
1 parent 348f0fdcfd
commit 50ccd31b84
1 file changed
-1
@@ -40,7 +40,6 @@ def build_dify_inputs_for_context(ctx: ChatStreamContext) -> dict[str, Any]:
trigger_source='frontend_chat',
user_role=str(getattr(ctx.user, 'role', '') or '').strip() or None,
adapter_hints=ctx.adapter_hints,
user_role=getattr(ctx.user, 'role', None),
)