From d13881fd4786f5e34b638331c6abebc87f8f5160 Mon Sep 17 00:00:00 2001 From: yuluo-yx Date: Thu, 16 Oct 2025 23:36:27 +0800 Subject: [PATCH 1/3] feat: standardize editor configs for cross-platform development Signed-off-by: yuluo-yx --- .editorconfig | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..cfd9a42d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +# http://editorconfig.org + +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 2 +max_line_length = 80 +trim_trailing_whitespace = true + +[Makefile] +indent_style = tab From bfc09e22e46efd51197941153e727bcab722daaa Mon Sep 17 00:00:00 2001 From: yuluo-yx Date: Thu, 16 Oct 2025 23:37:58 +0800 Subject: [PATCH 2/3] fix Signed-off-by: yuluo-yx --- .gitattributes | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..e69de29b From 2cca57cdb3d0bca30b0c1b71495739bd3ee51510 Mon Sep 17 00:00:00 2001 From: yuluo-yx Date: Thu, 16 Oct 2025 23:39:13 +0800 Subject: [PATCH 3/3] fix: add newline Signed-off-by: yuluo-yx --- .gitattributes | 3 +++ .gitignore | 2 +- dashboard/OWNER | 2 +- deploy/openshift/Dockerfile.llm-katan | 2 +- deploy/openshift/cleanup-openshift.sh | 2 +- deploy/openshift/config-openshift.yaml | 2 +- deploy/openshift/deploy-to-openshift.sh | 2 +- deploy/openshift/deployment.yaml | 2 +- deploy/openshift/envoy-openshift.yaml | 2 +- deploy/openshift/kustomization.yaml | 2 +- deploy/openshift/openwebui/deploy-openwebui-on-openshift.sh | 2 +- deploy/openshift/openwebui/deployment.yaml | 2 +- deploy/openshift/openwebui/kustomization.yaml | 2 +- deploy/openshift/openwebui/pvc.yaml | 2 +- deploy/openshift/openwebui/route.yaml | 2 +- deploy/openshift/openwebui/service.yaml | 2 +- deploy/openshift/openwebui/uninstall-openwebui.sh | 2 +- deploy/openshift/template.yaml | 2 +- e2e-tests/llm-katan/.gitignore | 2 +- e2e-tests/llm-katan/demo-embed.html | 2 +- e2e-tests/llm-katan/pyproject.toml | 2 +- e2e-tests/llm-katan/terminal-demo.html | 2 +- e2e-tests/start-llm-katan.sh | 2 +- scripts/quickstart.sh | 2 +- src/OWNER | 2 +- src/training/training_lora/OWNER | 2 +- .../training_lora/classifier_model_fine_tuning_lora/go.mod | 2 +- .../classifier_model_fine_tuning_lora/train_cpu_optimized.sh | 2 +- src/training/training_lora/pii_model_fine_tuning_lora/go.mod | 2 +- .../pii_model_fine_tuning_lora/train_cpu_optimized.sh | 2 +- .../training_lora/prompt_guard_fine_tuning_lora/go.mod | 2 +- .../prompt_guard_fine_tuning_lora/train_cpu_optimized.sh | 2 +- tools/linter/go/.golangci.yml | 2 +- tools/make/milvus.mk | 2 +- tools/make/openshift.mk | 2 +- website/src/components/ZoomableMermaid/styles.module.css | 2 +- 36 files changed, 38 insertions(+), 35 deletions(-) diff --git a/.gitattributes b/.gitattributes index e69de29b..130805ef 100644 --- a/.gitattributes +++ b/.gitattributes @@ -0,0 +1,3 @@ +# Auto detect text files and perform LF normalization +* text=auto +* text eol=lf diff --git a/.gitignore b/.gitignore index 01b0f24e..2ef8f447 100644 --- a/.gitignore +++ b/.gitignore @@ -142,4 +142,4 @@ dashboard/backend/dashboard-backend dashboard/backend/dashboard-backend.exe # Keep old HTML backup for reference -dashboard/frontend/index.html.old \ No newline at end of file +dashboard/frontend/index.html.old diff --git a/dashboard/OWNER b/dashboard/OWNER index 57d5a800..fd20844d 100644 --- a/dashboard/OWNER +++ b/dashboard/OWNER @@ -1,3 +1,3 @@ # Dashboard directory Owners @JaredforReal -@Xunzhuo \ No newline at end of file +@Xunzhuo diff --git a/deploy/openshift/Dockerfile.llm-katan b/deploy/openshift/Dockerfile.llm-katan index 0ca53782..47540197 100644 --- a/deploy/openshift/Dockerfile.llm-katan +++ b/deploy/openshift/Dockerfile.llm-katan @@ -42,4 +42,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ CMD curl -f http://localhost:8000/health || exit 1 # Default command - this will be overridden by deployment args -CMD ["llm-katan", "--help"] \ No newline at end of file +CMD ["llm-katan", "--help"] diff --git a/deploy/openshift/cleanup-openshift.sh b/deploy/openshift/cleanup-openshift.sh index 809fc94c..3ba5a9cb 100755 --- a/deploy/openshift/cleanup-openshift.sh +++ b/deploy/openshift/cleanup-openshift.sh @@ -491,4 +491,4 @@ main() { } # Run main function with all arguments -main "$@" \ No newline at end of file +main "$@" diff --git a/deploy/openshift/config-openshift.yaml b/deploy/openshift/config-openshift.yaml index 9cd98925..7aa88b68 100644 --- a/deploy/openshift/config-openshift.yaml +++ b/deploy/openshift/config-openshift.yaml @@ -205,4 +205,4 @@ observability: resource: service_name: "vllm-semantic-router" service_version: "v0.1.0" - deployment_environment: "development" \ No newline at end of file + deployment_environment: "development" diff --git a/deploy/openshift/deploy-to-openshift.sh b/deploy/openshift/deploy-to-openshift.sh index 67705cee..95b46139 100755 --- a/deploy/openshift/deploy-to-openshift.sh +++ b/deploy/openshift/deploy-to-openshift.sh @@ -985,4 +985,4 @@ main() { } # Run main function with all arguments -main "$@" \ No newline at end of file +main "$@" diff --git a/deploy/openshift/deployment.yaml b/deploy/openshift/deployment.yaml index 4c1da75b..f670c0ef 100644 --- a/deploy/openshift/deployment.yaml +++ b/deploy/openshift/deployment.yaml @@ -348,4 +348,4 @@ spec: claimName: semantic-router-models - name: cache-volume persistentVolumeClaim: - claimName: semantic-router-cache \ No newline at end of file + claimName: semantic-router-cache diff --git a/deploy/openshift/envoy-openshift.yaml b/deploy/openshift/envoy-openshift.yaml index d393c37a..f7118cdc 100644 --- a/deploy/openshift/envoy-openshift.yaml +++ b/deploy/openshift/envoy-openshift.yaml @@ -193,4 +193,4 @@ admin: address: socket_address: address: "127.0.0.1" - port_value: 19000 \ No newline at end of file + port_value: 19000 diff --git a/deploy/openshift/kustomization.yaml b/deploy/openshift/kustomization.yaml index 686dff69..5c83bf64 100644 --- a/deploy/openshift/kustomization.yaml +++ b/deploy/openshift/kustomization.yaml @@ -33,4 +33,4 @@ commonLabels: # Add OpenShift-specific annotations commonAnnotations: - deployment.openshift.io/type: "vllm-semantic-router" \ No newline at end of file + deployment.openshift.io/type: "vllm-semantic-router" diff --git a/deploy/openshift/openwebui/deploy-openwebui-on-openshift.sh b/deploy/openshift/openwebui/deploy-openwebui-on-openshift.sh index 58c37b96..7e2b22a5 100755 --- a/deploy/openshift/openwebui/deploy-openwebui-on-openshift.sh +++ b/deploy/openshift/openwebui/deploy-openwebui-on-openshift.sh @@ -126,4 +126,4 @@ echo " 1. Open https://$ROUTE_URL in your browser" echo " 2. Complete initial setup in OpenWebUI" echo " 3. The models should be automatically available" echo "" -echo -e "${GREEN}✨ Happy chatting with your models!${NC}" \ No newline at end of file +echo -e "${GREEN}✨ Happy chatting with your models!${NC}" diff --git a/deploy/openshift/openwebui/deployment.yaml b/deploy/openshift/openwebui/deployment.yaml index 56b413e8..08fb286d 100644 --- a/deploy/openshift/openwebui/deployment.yaml +++ b/deploy/openshift/openwebui/deployment.yaml @@ -82,4 +82,4 @@ spec: persistentVolumeClaim: claimName: openwebui-data - name: tmp-volume - emptyDir: {} \ No newline at end of file + emptyDir: {} diff --git a/deploy/openshift/openwebui/kustomization.yaml b/deploy/openshift/openwebui/kustomization.yaml index 29a15993..88685f96 100644 --- a/deploy/openshift/openwebui/kustomization.yaml +++ b/deploy/openshift/openwebui/kustomization.yaml @@ -19,4 +19,4 @@ commonLabels: app.kubernetes.io/part-of: semantic-router # Namespace for all resources -namespace: vllm-semantic-router-system \ No newline at end of file +namespace: vllm-semantic-router-system diff --git a/deploy/openshift/openwebui/pvc.yaml b/deploy/openshift/openwebui/pvc.yaml index 5b76d798..b395b2fb 100644 --- a/deploy/openshift/openwebui/pvc.yaml +++ b/deploy/openshift/openwebui/pvc.yaml @@ -13,4 +13,4 @@ spec: requests: storage: 2Gi # Use default storage class for OpenShift - # storageClassName: "" \ No newline at end of file + # storageClassName: "" diff --git a/deploy/openshift/openwebui/route.yaml b/deploy/openshift/openwebui/route.yaml index c31d6fee..327c057d 100644 --- a/deploy/openshift/openwebui/route.yaml +++ b/deploy/openshift/openwebui/route.yaml @@ -19,4 +19,4 @@ spec: tls: termination: edge insecureEdgeTerminationPolicy: Redirect - wildcardPolicy: None \ No newline at end of file + wildcardPolicy: None diff --git a/deploy/openshift/openwebui/service.yaml b/deploy/openshift/openwebui/service.yaml index e49e891c..a2910214 100644 --- a/deploy/openshift/openwebui/service.yaml +++ b/deploy/openshift/openwebui/service.yaml @@ -14,4 +14,4 @@ spec: protocol: TCP name: http selector: - app: openwebui \ No newline at end of file + app: openwebui diff --git a/deploy/openshift/openwebui/uninstall-openwebui.sh b/deploy/openshift/openwebui/uninstall-openwebui.sh index 50b758ad..2bdfb909 100755 --- a/deploy/openshift/openwebui/uninstall-openwebui.sh +++ b/deploy/openshift/openwebui/uninstall-openwebui.sh @@ -156,4 +156,4 @@ echo "" echo -e "${BLUE}💡 To redeploy OpenWebUI:${NC}" echo " ./deploy-openwebui-on-openshift.sh" echo "" -echo -e "${GREEN}✨ Cleanup completed successfully!${NC}" \ No newline at end of file +echo -e "${GREEN}✨ Cleanup completed successfully!${NC}" diff --git a/deploy/openshift/template.yaml b/deploy/openshift/template.yaml index c7f5212f..c14881e4 100644 --- a/deploy/openshift/template.yaml +++ b/deploy/openshift/template.yaml @@ -358,4 +358,4 @@ parameters: - name: METRICS_HOSTNAME description: "Custom hostname for metrics route (leave empty for auto-generated)" value: "" - required: false \ No newline at end of file + required: false diff --git a/e2e-tests/llm-katan/.gitignore b/e2e-tests/llm-katan/.gitignore index 9d5f6256..5d2bf94f 100644 --- a/e2e-tests/llm-katan/.gitignore +++ b/e2e-tests/llm-katan/.gitignore @@ -17,4 +17,4 @@ __pycache__/ # OS files .DS_Store -Thumbs.db \ No newline at end of file +Thumbs.db diff --git a/e2e-tests/llm-katan/demo-embed.html b/e2e-tests/llm-katan/demo-embed.html index b3633fb5..01e3b5d8 100644 --- a/e2e-tests/llm-katan/demo-embed.html +++ b/e2e-tests/llm-katan/demo-embed.html @@ -58,4 +58,4 @@ .pause(800) .type('# Same tiny model, different API names! 🎯') .go(); - \ No newline at end of file + diff --git a/e2e-tests/llm-katan/pyproject.toml b/e2e-tests/llm-katan/pyproject.toml index f9708ec4..e5d679f1 100644 --- a/e2e-tests/llm-katan/pyproject.toml +++ b/e2e-tests/llm-katan/pyproject.toml @@ -71,4 +71,4 @@ target-version = ['py38', 'py39', 'py310', 'py311', 'py312'] [tool.isort] profile = "black" -line_length = 100 \ No newline at end of file +line_length = 100 diff --git a/e2e-tests/llm-katan/terminal-demo.html b/e2e-tests/llm-katan/terminal-demo.html index 562bf51a..4e9ef991 100644 --- a/e2e-tests/llm-katan/terminal-demo.html +++ b/e2e-tests/llm-katan/terminal-demo.html @@ -240,4 +240,4 @@ }, 8500); // Start after both terminals complete (~8.5 seconds) - \ No newline at end of file + diff --git a/e2e-tests/start-llm-katan.sh b/e2e-tests/start-llm-katan.sh index 05934303..027a47d6 100755 --- a/e2e-tests/start-llm-katan.sh +++ b/e2e-tests/start-llm-katan.sh @@ -136,4 +136,4 @@ start_servers_foreground() { } # Main execution - always run in foreground mode -start_servers_foreground \ No newline at end of file +start_servers_foreground diff --git a/scripts/quickstart.sh b/scripts/quickstart.sh index 546173f6..43b7e745 100755 --- a/scripts/quickstart.sh +++ b/scripts/quickstart.sh @@ -287,4 +287,4 @@ main() { trap 'echo; print_color $RED "❌ Setup interrupted!"; exit 1' INT TERM # Run main function -main "$@" \ No newline at end of file +main "$@" diff --git a/src/OWNER b/src/OWNER index aadb3d08..b953aaef 100644 --- a/src/OWNER +++ b/src/OWNER @@ -1,4 +1,4 @@ # Source code owners @rootfs @Xunzhuo -@wangchen615 \ No newline at end of file +@wangchen615 diff --git a/src/training/training_lora/OWNER b/src/training/training_lora/OWNER index 77eb95c4..9b09f2a9 100644 --- a/src/training/training_lora/OWNER +++ b/src/training/training_lora/OWNER @@ -1,2 +1,2 @@ # lora training owners -@OneZero-Y \ No newline at end of file +@OneZero-Y diff --git a/src/training/training_lora/classifier_model_fine_tuning_lora/go.mod b/src/training/training_lora/classifier_model_fine_tuning_lora/go.mod index 0f41b41d..338e6383 100644 --- a/src/training/training_lora/classifier_model_fine_tuning_lora/go.mod +++ b/src/training/training_lora/classifier_model_fine_tuning_lora/go.mod @@ -4,4 +4,4 @@ go 1.24.1 replace github.com/vllm-project/semantic-router/candle-binding => ../../../../candle-binding -require github.com/vllm-project/semantic-router/candle-binding v0.0.0-00010101000000-000000000000 \ No newline at end of file +require github.com/vllm-project/semantic-router/candle-binding v0.0.0-00010101000000-000000000000 diff --git a/src/training/training_lora/classifier_model_fine_tuning_lora/train_cpu_optimized.sh b/src/training/training_lora/classifier_model_fine_tuning_lora/train_cpu_optimized.sh index 4e1d4402..93692d27 100755 --- a/src/training/training_lora/classifier_model_fine_tuning_lora/train_cpu_optimized.sh +++ b/src/training/training_lora/classifier_model_fine_tuning_lora/train_cpu_optimized.sh @@ -304,4 +304,4 @@ echo "" # Display final summary echo "📊 FINAL CPU TRAINING SUMMARY:" -cat "$SUMMARY_FILE" \ No newline at end of file +cat "$SUMMARY_FILE" diff --git a/src/training/training_lora/pii_model_fine_tuning_lora/go.mod b/src/training/training_lora/pii_model_fine_tuning_lora/go.mod index 76e61471..99bdf152 100644 --- a/src/training/training_lora/pii_model_fine_tuning_lora/go.mod +++ b/src/training/training_lora/pii_model_fine_tuning_lora/go.mod @@ -4,4 +4,4 @@ go 1.24.1 replace github.com/vllm-project/semantic-router/candle-binding => ../../../../candle-binding -require github.com/vllm-project/semantic-router/candle-binding v0.0.0-00010101000000-000000000000 \ No newline at end of file +require github.com/vllm-project/semantic-router/candle-binding v0.0.0-00010101000000-000000000000 diff --git a/src/training/training_lora/pii_model_fine_tuning_lora/train_cpu_optimized.sh b/src/training/training_lora/pii_model_fine_tuning_lora/train_cpu_optimized.sh index 49e46ee2..47b7ecbc 100755 --- a/src/training/training_lora/pii_model_fine_tuning_lora/train_cpu_optimized.sh +++ b/src/training/training_lora/pii_model_fine_tuning_lora/train_cpu_optimized.sh @@ -304,4 +304,4 @@ echo "" # Display final summary echo "📊 FINAL CPU TRAINING SUMMARY:" -cat "$SUMMARY_FILE" \ No newline at end of file +cat "$SUMMARY_FILE" diff --git a/src/training/training_lora/prompt_guard_fine_tuning_lora/go.mod b/src/training/training_lora/prompt_guard_fine_tuning_lora/go.mod index b06a96d7..6195d9f1 100644 --- a/src/training/training_lora/prompt_guard_fine_tuning_lora/go.mod +++ b/src/training/training_lora/prompt_guard_fine_tuning_lora/go.mod @@ -4,4 +4,4 @@ go 1.24.1 replace github.com/vllm-project/semantic-router/candle-binding => ../../../../candle-binding -require github.com/vllm-project/semantic-router/candle-binding v0.0.0-00010101000000-000000000000 \ No newline at end of file +require github.com/vllm-project/semantic-router/candle-binding v0.0.0-00010101000000-000000000000 diff --git a/src/training/training_lora/prompt_guard_fine_tuning_lora/train_cpu_optimized.sh b/src/training/training_lora/prompt_guard_fine_tuning_lora/train_cpu_optimized.sh index 7b717205..f3bad088 100755 --- a/src/training/training_lora/prompt_guard_fine_tuning_lora/train_cpu_optimized.sh +++ b/src/training/training_lora/prompt_guard_fine_tuning_lora/train_cpu_optimized.sh @@ -304,4 +304,4 @@ echo "" # Display final summary echo "📊 FINAL CPU TRAINING SUMMARY:" -cat "$SUMMARY_FILE" \ No newline at end of file +cat "$SUMMARY_FILE" diff --git a/tools/linter/go/.golangci.yml b/tools/linter/go/.golangci.yml index 852ba345..1aa6e9e7 100644 --- a/tools/linter/go/.golangci.yml +++ b/tools/linter/go/.golangci.yml @@ -163,4 +163,4 @@ formatters: paths: - examples$ - zz_generated - \ No newline at end of file + diff --git a/tools/make/milvus.mk b/tools/make/milvus.mk index d435dd22..9113db16 100644 --- a/tools/make/milvus.mk +++ b/tools/make/milvus.mk @@ -86,4 +86,4 @@ stop-milvus-ui: @echo "Stopping Attu (Milvus UI) container..." @$(CONTAINER_RUNTIME) stop milvus-ui || true @$(CONTAINER_RUNTIME) rm milvus-ui || true - @echo "Attu container stopped and removed" \ No newline at end of file + @echo "Attu container stopped and removed" diff --git a/tools/make/openshift.mk b/tools/make/openshift.mk index 7c8498b9..47c0d4a9 100644 --- a/tools/make/openshift.mk +++ b/tools/make/openshift.mk @@ -227,4 +227,4 @@ openshift-help: @echo "$(BLUE)Example usage:$(NC)" @echo " make openshift-deploy-auto OPENSHIFT_SERVER=https://api.cluster.example.com:6443 OPENSHIFT_PASSWORD=mypass" @echo " make openshift-status OPENSHIFT_NAMESPACE=my-namespace" - @echo " make openshift-logs" \ No newline at end of file + @echo " make openshift-logs" diff --git a/website/src/components/ZoomableMermaid/styles.module.css b/website/src/components/ZoomableMermaid/styles.module.css index aeb84e13..1c4055f3 100644 --- a/website/src/components/ZoomableMermaid/styles.module.css +++ b/website/src/components/ZoomableMermaid/styles.module.css @@ -372,4 +372,4 @@ .modalContent { animation: none; } -} \ No newline at end of file +}