4.2.3

(fix): 多部分请求现在遵循文件属性的内容类型。例如,如果您有一个名为 image 的文件属性,其内容类型为 image/jpeg,那么它将作为以下方式发送:

1"image": core.with_content_type(file=image, content_type="image/jpeg"),

4.2.2

(fix): 多部分请求现在遵循非文件属性的内容类型。例如,如果您有一个名为 metadata 的类型,其内容类型为 application/json,那么它将作为以下方式发送:

1"metadata": (None, json.dumps(jsonable_encoder(metadata)), "application/json"),