File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -114,4 +114,4 @@ if [[ "$MODEL" == *"/"* && ! "$MODEL" == *"ggml-org/"* && ! "$MODEL" == *"micros
114114else
115115 # Treat as HuggingFace model
116116 ./build/bin/llama-server --path tools/server/public -hf " $MODEL " --port " $PORT "
117- fi
117+ fi
Original file line number Diff line number Diff line change @@ -5004,7 +5004,7 @@ int main(int argc, char ** argv) {
50045004 // Only add fallback when using embedded static files
50055005 svr->Get (" .*" , [](const httplib::Request & req, httplib::Response & res) {
50065006 // Skip API routes - they should have been handled above
5007- if (req.path .find (" /v1/" ) != std::string::npos ||
5007+ if (req.path .find (" /v1/" ) != std::string::npos ||
50085008 req.path .find (" /health" ) != std::string::npos ||
50095009 req.path .find (" /metrics" ) != std::string::npos ||
50105010 req.path .find (" /props" ) != std::string::npos ||
@@ -5019,7 +5019,7 @@ int main(int argc, char ** argv) {
50195019 req.path .find (" /slots" ) != std::string::npos) {
50205020 return false ; // Let other handlers process API routes
50215021 }
5022-
5022+
50235023 // Serve index.html for all other routes (SPA fallback)
50245024 if (req.get_header_value (" Accept-Encoding" ).find (" gzip" ) == std::string::npos) {
50255025 res.set_content (" Error: gzip is not supported by this browser" , " text/plain" );
You can’t perform that action at this time.
0 commit comments