We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 599fa17 commit c057efbCopy full SHA for c057efb
examples/server/utils.hpp
@@ -521,8 +521,13 @@ static json oaicompat_completion_params_parse(const json & body) {
521
throw std::runtime_error("Only one completion choice is allowed");
522
}
523
524
+ // Handle "echo" field
525
+ if (json_value(body, "echo", false)) {
526
+ throw std::runtime_error("Only no echo is supported");
527
+ }
528
+
529
// Params supported by OAI but unsupported by llama.cpp
- static const std::vector<std::string> unsupported_params { "best_of", "echo", "suffix" };
530
+ static const std::vector<std::string> unsupported_params { "best_of", "suffix" };
531
for (const auto & param : unsupported_params) {
532
if (body.contains(param)) {
533
throw std::runtime_error("Unsupported param: " + param);
0 commit comments