Skip to content

Commit 7fd78b6

Browse files
committed
fix: Linting
1 parent 218cbcf commit 7fd78b6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/llama-server-local.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,4 @@ if [[ "$MODEL" == *"/"* && ! "$MODEL" == *"ggml-org/"* && ! "$MODEL" == *"micros
114114
else
115115
# Treat as HuggingFace model
116116
./build/bin/llama-server --path tools/server/public -hf "$MODEL" --port "$PORT"
117-
fi
117+
fi

tools/server/server.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)