Skip to content

Commit

Permalink
fix(server): typo in temperature parameter (#1545)
Browse files Browse the repository at this point in the history
Also fixed another typo in comments.
  • Loading branch information
Okabintaro authored Nov 23, 2023
1 parent d2bd5f0 commit 8328d19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8328d19

Please sign in to comment.