fix JSON array/object parser regression in JParser::parse_value
This commit is contained in:
+3
-3
@@ -225,7 +225,7 @@ bool parse_nonstream_response(std::string_view body, Message &out, Usage &usage)
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
/* llm.cpp — HTTP client (libcurl), headers, backoff, dispatch. */
|
||||
/* -------------------------------------------------------------- */
|
||||
/* ------------------------------------------------------------------ */
|
||||
int http_get(Cfg &cfg, std::string_view url, std::string &body, long &code,
|
||||
std::string &errmsg);
|
||||
int llm(Cfg &cfg, Messages &msgs, bool use_tools, Message &out, Usage &usage,
|
||||
@@ -239,8 +239,8 @@ std::string shell_with_workdir(std::string_view cmd, std::string_view workdir,
|
||||
std::string read_file_or_dir(std::string_view path, int offset, int limit,
|
||||
int *style);
|
||||
std::string write_file(std::string_view path, long line_offset, long byte_offset,
|
||||
long del_lines, long del_bytes,
|
||||
std::string_view content, int *err);
|
||||
long del_lines, long del_bytes,
|
||||
std::string_view content, int *err);
|
||||
std::string offload_tool_result(std::string_view res, int max_res,
|
||||
std::vector<std::string> &tmps);
|
||||
void cleanup_temps(std::vector<std::string> &tmps);
|
||||
|
||||
Reference in New Issue
Block a user