LLM inference in C/C++
C++ ggml
server: fix read_file append_loc space breaking edit_file match (#25705)
Pascala5822222909b
diff --git a/tools/server/server-tools.cpp b/tools/server/server-tools.cppindex a8216d7dbc..9eb57abaea 100644--- a/tools/server/server-tools.cpp+++ b/tools/server/server-tools.cpp@@ -289,7 +289,7 @@ struct server_tool_read_file : server_tool {{"function", {{"name", name},{"description", "Read the contents of a file. Optionally specify a 1-based line range. "- "If append_loc is true, each line is prefixed with its line number (e.g. \"1\u2192 ...\")."},+ "If append_loc is true, each line is prefixed with its line number (e.g. \"1\u2192...\")."},{"parameters", {{"type", "object"},{"properties", {@@ -339,7 +339,7 @@ struct server_tool_read_file : server_tool {std::string out_line;if (append_loc) {- out_line = std::to_string(lineno) + "\u2192 " + line + "\n";+ out_line = std::to_string(lineno) + "\u2192" + line + "\n";} else {out_line = line + "\n";}