fix: octet/stream => application/octet-stream (#15329)
Co-authored-by: crazywoola <427733928@qq.com>
This commit is contained in:
parent
87efd4ab84
commit
aef43910b1
6 changed files with 9 additions and 7 deletions
|
|
@ -58,7 +58,7 @@ class ToolFileMessageTransformer:
|
|||
# get mime type and save blob to storage
|
||||
meta = message.meta or {}
|
||||
|
||||
mimetype = meta.get("mime_type", "octet/stream")
|
||||
mimetype = meta.get("mime_type", "application/octet-stream")
|
||||
# if message is str, encode it to bytes
|
||||
|
||||
if not isinstance(message.message, ToolInvokeMessage.BlobMessage):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue