diff --git a/backend/app/services/chat/executors/base.py b/backend/app/services/chat/executors/base.py index a080e3b7..48c60277 100644 --- a/backend/app/services/chat/executors/base.py +++ b/backend/app/services/chat/executors/base.py @@ -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), )