This commit is contained in:
retoor 2025-03-03 13:57:16 +01:00
parent 387d5bb6a2
commit f57a174d0a
2 changed files with 0 additions and 4 deletions

2
chat.h
View File

@ -72,8 +72,6 @@ char *chat_json(char *role, char *message) {
json_object_object_add(root_object, "max_tokens", json_object_new_int(prompt_max_tokens));
json_object_object_add(root_object, "temperature", json_object_new_double(prompt_temperature));
printf("%s\n", json_object_to_json_string_ext(root_object, JSON_C_TO_STRING_PRETTY));
return (char *)json_object_to_json_string_ext(root_object, JSON_C_TO_STRING_PRETTY);
}

View File

@ -33,8 +33,6 @@ struct json_object *tools_descriptions() {
json_object_array_add(root, tool_description_write_file());
char * result = strdup(json_object_to_json_string_ext(root, JSON_C_TO_STRING_PRETTY));
printf("%s\n", result);
return root;
}