Skip to content

Commit 22c3d5e

Browse files
authored
remove .mime_str(application/octet-stream) (#395)
1 parent f9affae commit 22c3d5e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

async-openai/src/util.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ pub(crate) async fn create_file_part(
5252
InputSource::VecU8 { filename, vec } => (Body::from(vec), filename),
5353
};
5454

55-
let file_part = reqwest::multipart::Part::stream(stream)
56-
.file_name(file_name)
57-
.mime_str("application/octet-stream")
58-
.unwrap();
55+
let file_part = reqwest::multipart::Part::stream(stream).file_name(file_name);
5956

6057
Ok(file_part)
6158
}

0 commit comments

Comments
 (0)