]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
server : fix typo in model name (#4876)
authorIsaac McFadyen <redacted>
Thu, 11 Jan 2024 14:33:26 +0000 (09:33 -0500)
committerGitHub <redacted>
Thu, 11 Jan 2024 14:33:26 +0000 (16:33 +0200)
examples/server/server.cpp

index 4a0714997f17d4d31a53eab7c6467fd1fa99b733..860e4e9ae3d814a72b824a7facc546ebfd773eff 100644 (file)
@@ -2515,7 +2515,7 @@ json oaicompat_completion_params_parse(
     //
     // https://platform.openai.com/docs/api-reference/chat/create
     llama_sampling_params default_sparams;
-    llama_params["model"]             = json_value(body, "model", std::string("uknown"));
+    llama_params["model"]             = json_value(body, "model", std::string("unknown"));
     llama_params["prompt"]            = format_chatml(body["messages"]); // OpenAI 'messages' to llama.cpp 'prompt'
     llama_params["cache_prompt"]      = json_value(body, "cache_prompt", false);
     llama_params["temperature"]       = json_value(body, "temperature", 0.0);