fix(dify): send 'user' as plain form field in file upload

The multipart tuple form (None, user) is httpx 'files=' syntax for a part
with no filename; placed under 'data=' it expanded into a stray user=None
field, so Dify associated the uploaded file with the wrong user and the
workflow never received the image. Send 'user' as a plain string.
This commit is contained in:
RockChinQ
2026-06-09 10:43:55 -04:00
parent f897987ac1
commit 53d4edb609

View File

@@ -145,7 +145,7 @@ class AsyncDifyServiceClient:
'file': file,
},
data={
'user': (None, user),
'user': user,
},
)