We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9affae commit 22c3d5eCopy full SHA for 22c3d5e
async-openai/src/util.rs
@@ -52,10 +52,7 @@ pub(crate) async fn create_file_part(
52
InputSource::VecU8 { filename, vec } => (Body::from(vec), filename),
53
};
54
55
- let file_part = reqwest::multipart::Part::stream(stream)
56
- .file_name(file_name)
57
- .mime_str("application/octet-stream")
58
- .unwrap();
+ let file_part = reqwest::multipart::Part::stream(stream).file_name(file_name);
59
60
Ok(file_part)
61
}
0 commit comments