TypeError: argument should be a bytes-like object or ASCII string, not 'list'
Self Checks
- [X] I have searched for existing issues search for existing issues, including closed ones.
- [X] I confirm that I am using English to file this report (我已阅读并同意 Language Policy).
Dify version
0.4.4
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
Return recall data normally
❌ Actual Behavior
report an error "typeError: argument should be a bytes-like object or ASCII string, not 'list'"
exception traceback:
According to openai's api documentation, response.data should be an array, but data.embedding used in dify.
Is this a bug caused by version upgrades?
The embedding is a string encrypted by base64, so there is no problem with the logic here.
Are you using the proxied openai interface?
Sorry, I just saw this message.
Yes, we used a proxy, and this is indeed a bug caused by the proxy.
后来是怎么处理的呢
后来是怎么处理的呢
dify不给修复 也没有给出可选项好像
后来是怎么处理的呢
dify不给修复 也没有给出可选项好像
可以使用 OpenAI-API-compatible 这个模型供应商类型解决