fix(chat): 解决会话报错
This commit is contained in:
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',
|
trigger_source='frontend_chat',
|
||||||
user_role=str(getattr(ctx.user, 'role', '') or '').strip() or None,
|
user_role=str(getattr(ctx.user, 'role', '') or '').strip() or None,
|
||||||
adapter_hints=ctx.adapter_hints,
|
adapter_hints=ctx.adapter_hints,
|
||||||
user_role=getattr(ctx.user, 'role', None),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user