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
I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
Please do not modify this template :) and fill in all the required fields.
Dify version
1.0.1
Cloud or Self Hosted
Cloud, Self Hosted (Docker)
Steps to reproduce
Create an agent
Attach Azure DALL-e as a tool
Send a message to request for an image
✔️ Expected Behavior
Azure Dall-E successfully returns an image
❌ Actual Behavior
This error is thrown.
{"azure_dalle3": "tool invoke error: PluginInvokeError: {"args":{},"error_type":"NameError","message":"name 'base64' is not defined"}"}
The text was updated successfully, but these errors were encountered:
@jonjonhui Hello! I'm here to help you with bugs, questions, and becoming a contributor. Let me know how I can assist you while you wait for a human maintainer.
The error you're encountering, "name 'base64' is not defined," suggests that the base64 module is not being imported in the context where it's needed for the Azure DALL-e integration. In the Dify codebase, the base64 module is typically imported using the following statement:
frombase64importb64decode
This import is necessary for decoding base64-encoded image data received from the DALL-e API [1][2].
To resolve this issue, ensure that the base64 module is correctly imported in the file where the Azure DALL-e tool is implemented. You should check the relevant file for the DallE3Tool class and verify that the import statement is present and correctly placed at the top of the file. If it's missing, add the import statement to fix the NameError.
Self Checks
Dify version
1.0.1
Cloud or Self Hosted
Cloud, Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
Azure Dall-E successfully returns an image
❌ Actual Behavior
This error is thrown.
{"azure_dalle3": "tool invoke error: PluginInvokeError: {"args":{},"error_type":"NameError","message":"name 'base64' is not defined"}"}
The text was updated successfully, but these errors were encountered: