-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathchanges.log
More file actions
75 lines (70 loc) · 3.34 KB
/
Copy pathchanges.log
File metadata and controls
75 lines (70 loc) · 3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
diff --git a/configs/config.yaml b/configs/config.yaml
index bea4abfb..36b93cc1 100644
--- a/configs/config.yaml
+++ b/configs/config.yaml
@@ -77,7 +77,7 @@ database:
metric_type: IP
models:
- id: gemma3-1b
- path: D:\Works\Genta\codes\kolosal-server\build\release\models\google_gemma-3-1b-it_q4_k_m.gguf
+ path: D:\Works\Genta\codes\kolosal-server\build\Release\models\google_gemma-3-1b-it_q4_k_m.gguf
type: llm
load_immediately: true
main_gpu_id: 0
diff --git a/src/routes/ui_routes.cpp b/src/routes/ui_routes.cpp
index 44a87b5d..25ef586c 100644
--- a/src/routes/ui_routes.cpp
+++ b/src/routes/ui_routes.cpp
@@ -14,7 +14,14 @@ namespace kolosal {
// Match playground routes
if (path == "/playground" || path == "/playground/") {
current_method_ = method;
- current_path_ = "/playground/index.html";
+ current_path_ = "/playground/playground.html";
+ return true;
+ }
+
+ // Match direct playground.html access
+ if (path == "/playground/playground.html") {
+ current_method_ = method;
+ current_path_ = "/playground/playground.html";
return true;
}
@@ -65,14 +72,14 @@ namespace kolosal {
if (path.length() >= 19 && path.substr(0, 19) == "/playground/styles/" &&
path.length() >= 4 && path.substr(path.length() - 4) == ".css") {
current_method_ = method;
- current_path_ = path.substr(11); // Remove "/playground" prefix
+ current_path_ = path; // Keep the full path for playground assets
return true;
}
if (path.length() >= 19 && path.substr(0, 19) == "/playground/script/" &&
path.length() >= 3 && path.substr(path.length() - 3) == ".js") {
current_method_ = method;
- current_path_ = path.substr(11); // Remove "/playground" prefix
+ current_path_ = path; // Keep the full path for playground assets
return true;
}
@@ -174,13 +181,16 @@ namespace kolosal {
std::filesystem::path staticDir;
std::filesystem::path filePath;
+ // Get the absolute path to the executable's directory
+ std::filesystem::path executablePath = std::filesystem::current_path();
+
if (relativePath.find("/playground/") == 0) {
// This is a playground file
- staticDir = std::filesystem::current_path() / "static" / "kolosal-playground";
+ staticDir = executablePath / "static" / "kolosal-playground";
filePath = relativePath.substr(12); // Remove "/playground/" prefix
} else {
// This is a dashboard file
- staticDir = std::filesystem::current_path() / "static" / "kolosal-dashboard";
+ staticDir = executablePath / "static" / "kolosal-dashboard";
filePath = relativePath.substr(1); // Remove leading slash
}
diff --git a/static/kolosal-dashboard b/static/kolosal-dashboard
--- a/static/kolosal-dashboard
+++ b/static/kolosal-dashboard
@@ -1 +1 @@
-Subproject commit 7f54613a81c6d5772614d43de98beb0fdde0abb8
+Subproject commit 7f54613a81c6d5772614d43de98beb0fdde0abb8-dirty