fix(server): typo in temperature parameter (#1545)

Also fixed another typo in comments.
This commit is contained in:
Okabintaro 2023-11-23 19:59:36 +01:00 committed by GitHub
parent d2bd5f0bdc
commit 8328d1900f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -373,7 +373,7 @@ void get_req_parameters(const Request & req, whisper_params & params)
{
params.response_format = req.get_file_value("response-format").content;
}
if (req.has_file("temerature"))
if (req.has_file("temperature"))
{
params.userdef_temp = std::stof(req.get_file_value("temperature").content);
}
@ -429,7 +429,7 @@ int main(int argc, char ** argv) {
});
svr.Post("/inference", [&](const Request &req, Response &res){
// aquire whisper model mutex lock
// acquire whisper model mutex lock
whisper_mutex.lock();
// first check user requested fields of the request