fix: octet/stream => application/octet-stream (#15329)

Co-authored-by: crazywoola <427733928@qq.com>
This commit is contained in:
Will
2025-03-10 09:49:27 +08:00
committed by GitHub
parent 87efd4ab84
commit aef43910b1
6 changed files with 9 additions and 7 deletions

View File

@@ -58,7 +58,7 @@ Dify支持`文本` `链接` `图片` `文件BLOB` `JSON` 等多种消息类型
如果你需要返回文件的原始数据如图片、音频、视频、PPT、Word、Excel等可以使用以下接口。
- `blob` 文件的原始数据bytes类型
- `meta` 文件的元数据,如果你知道该文件的类型,最好传递一个`mime_type`否则Dify将使用`octet/stream`作为默认类型
- `meta` 文件的元数据,如果你知道该文件的类型,最好传递一个`mime_type`否则Dify将使用`application/octet-stream`作为默认类型
```python
def create_blob_message(self, blob: bytes, meta: dict = None, save_as: str = '') -> ToolInvokeMessage: