You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error you're encountering, File.__init__() got an unexpected keyword argument 'dify_model_identity', suggests that the File class's constructor does not accept dify_model_identity as a keyword argument. This is likely because dify_model_identity is defined as a class attribute rather than an instance attribute that should be passed during initialization.
In the Dify codebase, dify_model_identity is used as a class attribute to identify or categorize the model within the platform. It is not intended to be passed as an argument when creating an instance of the File class [1].
To resolve this issue, you should ensure that when creating instances of the File class, dify_model_identity is not included in the keyword arguments. Instead, it should be set as a class attribute, as it is already defined in the class itself. You might need to adjust the code where the File instances are being created to exclude this argument from the initialization process.
Self Checks
Dify version
0.14.2
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
✔️ Expected Behavior
No response
❌ Actual Behavior
Debug panel:
The text was updated successfully, but these errors were encountered: