Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(server): typo in temperature parameter #1545

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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