refactor: replace hardcoded prompt_temperature and db_file with PROMPT_TEMPERATURE and DB_FILE macros defined in r.h

This commit is contained in:
2025-03-28 05:55:22 +00:00
parent 7dfd1c0b44
commit 599a268e65
7 changed files with 18 additions and 14 deletions
+2 -2
View File
@@ -112,13 +112,13 @@ char* index_directory(const char *dir_path) {
json_object_object_add(jfile, "file_current_content_data", json_object_new_string("Error reading file"));
} else {
content[length] = '\0'; // Null-terminate the string
json_object_object_add(jfile, "file_current_content_data", json_object_new_string(content));
//json_object_object_add(jfile, "file_current_content_data", json_object_new_string(content));
}
free(content);
}
fclose(fp);
} else {
json_object_object_add(jfile, "content", json_object_new_string("Unable to read file"));
//json_object_object_add(jfile, "content", json_object_new_string("Unable to read file"));
}
json_object_array_add(jarray, jfile);