Skip to content

Commit b9a6270

Browse files
authored
fix: CreateTranscriptionRequest language field not convert (#188)
1 parent 2fdcd21 commit b9a6270

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

async-openai/src/types/impls.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,11 @@ impl async_convert::TryFrom<CreateTranscriptionRequest> for reqwest::multipart::
637637
if let Some(temperature) = request.temperature {
638638
form = form.text("temperature", temperature.to_string())
639639
}
640+
641+
if let Some(language) = request.language {
642+
form = form.text("language", language);
643+
}
644+
640645
Ok(form)
641646
}
642647
}

0 commit comments

Comments
 (0)