mirror of
https://github.com/NVIDIA/dgx-spark-playbooks.git
synced 2026-04-24 10:53:52 +00:00
LitServe-based prompt injection detection server with a React monitoring dashboard. Serves HuggingFace classification models behind an OpenAI-compatible API with real-time metrics and GPU acceleration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
393 B
TypeScript
17 lines
393 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: 3000,
|
|
proxy: {
|
|
"/health": "http://localhost:8234",
|
|
"/models": "http://localhost:8234",
|
|
"/metrics": "http://localhost:8234",
|
|
"/api": "http://localhost:8234",
|
|
"/v1": "http://localhost:8234",
|
|
},
|
|
},
|
|
});
|