Fix windows build with CUDA (#1101)

Co-authored-by: firecoperana <firecoperana>
This commit is contained in:
firecoperana
2026-01-04 23:59:23 -06:00
committed by GitHub
parent d7476a1b46
commit 56dceefd6b
5 changed files with 13 additions and 16 deletions

View File

@@ -47,6 +47,7 @@ struct DatabaseHandle {
#endif
using json = nlohmann::ordered_json;
namespace fs = std::filesystem;
bool server_verbose = false;
bool server_log_json = true;
@@ -1310,7 +1311,6 @@ int main(int argc, char ** argv) {
const auto list_saved_prompts = [&ctx_server, &params](const httplib::Request& req, httplib::Response& res) {
json response = json::array();
namespace fs = std::filesystem;
try {
for (const auto& entry : fs::directory_iterator(params.slot_save_path)) {