refactor: replace hardcoded prompt_temperature and db_file with PROMPT_TEMPERATURE and DB_FILE macros defined in r.h
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user