-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
incorrect transfer of image file in workflow. #3217
Comments
Thank you for providing detailed information about the issue you're experiencing. Based on the provided start and LLM payloads, it seems like the image file is not being transferred correctly to the LLM for processing. The issue might be related to how the image file is being handled during the transfer process. In the start payload, the Here are some steps you can take to troubleshoot and potentially resolve this issue:
If you've tried these steps and are still experiencing the issue, it would be helpful to have more information about your setup. Specifically, details about how you're hosting Dify, any customizations you've made to the Dify configuration, and any relevant server logs or error messages would be useful. I hope this helps! If you have any other questions or need further clarification, please don't hesitate to ask. Sources
|
Fixed in #3225 |
not fixed. |
Self Checks
Dify version
0.6.0-fix1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
create any workflow
use image model
✔️ Expected Behavior
correct usage of image by LLM
❌ Actual Behavior
start:
{
"sys.query": "这是什么书",
"sys.files": [
{
"__variant": "FileVar",
"tenant_id": "7767b646-820f-489e-85f2-83df6fecf57f",
"type": "image",
"transfer_method": "remote_url",
"url": "https://s3proxy.cdn-zlib.se/covers400/collections/userbooks/adcfeeddedd2a11bb7a06c56c650cdeb1f4ec3518a51f75882c00dca68f95ed6.jpg",
"related_id": null,
"filename": null,
"extension": null,
"mime_type": null
}
]
}
LLM:
{
"model_mode": "chat",
"prompts": [
{
"role": "system",
"text": "你是一个乐于助人的助手。\n回答用户时:\n如果你不知道,就直说你不知道。如果你在不确定的时候不知道,就寻求澄清。\n避免提及你是从上下文中获取的信息。\n并根据用户问题的语言来回答。",
"files": []
},
{
"role": "user",
"text": "这是什么书",
"files": []
}
]
}
The text was updated successfully, but these errors were encountered: