mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-09-18 16:55:05 +02:00
wip
This commit is contained in:
@@ -1420,8 +1420,8 @@ struct server_tool_edit_file : server_tool {
|
||||
edits.reserve(edits_json.size());
|
||||
for (const auto & e : edits_json) {
|
||||
edit_req er;
|
||||
er.old_text = e.at("old_text").get<std::string>();
|
||||
er.new_text = e.at("new_text").get<std::string>();
|
||||
er.old_text = e.at("old_text");
|
||||
er.new_text = e.at("new_text");
|
||||
if (er.old_text.empty()) {
|
||||
return {{"error", string_format("edits[%zu].old_text must not be empty", edits.size())}};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user