mirror of
https://github.com/Open-Dev-Society/OpenStock.git
synced 2026-05-07 05:55:51 +08:00
Introduce a configurable AI provider system (lib/ai-provider.ts) that supports Gemini (default), MiniMax, and Siray.ai with automatic fallback. The AI_PROVIDER env var selects the primary provider, and on failure the system falls back to a secondary provider automatically. - MiniMax M2.7 via OpenAI-compatible API (api.minimax.io/v1) - Provider abstraction replaces hardcoded Gemini + Siray fallback - 24 unit tests + 3 integration tests (vitest)
61 lines
1.6 KiB
JSON
61 lines
1.6 KiB
JSON
{
|
|
"name": "Openstock",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev --turbopack",
|
|
"build": "next build --turbopack",
|
|
"start": "next start",
|
|
"lint": "eslint",
|
|
"test:db": "node scripts/test-db.mjs",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@radix-ui/react-avatar": "^1.1.10",
|
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
"@radix-ui/react-label": "^2.1.7",
|
|
"@radix-ui/react-popover": "^1.1.15",
|
|
"@radix-ui/react-select": "^2.2.6",
|
|
"@radix-ui/react-slot": "^1.2.3",
|
|
"@vercel/analytics": "^1.6.1",
|
|
"better-auth": "^1.3.25",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"cmdk": "^1.1.1",
|
|
"country-data-list": "^1.5.5",
|
|
"date-fns": "^4.1.0",
|
|
"dotenv": "^17.2.3",
|
|
"inngest": "^3.47.0",
|
|
"lucide-react": "^0.544.0",
|
|
"mongodb": "^6.20.0",
|
|
"mongoose": "^8.19.0",
|
|
"next": "15.5.7",
|
|
"next-themes": "^0.4.6",
|
|
"nodemailer": "^7.0.6",
|
|
"react": "19.1.0",
|
|
"react-circle-flags": "^0.0.23",
|
|
"react-dom": "19.1.0",
|
|
"react-hook-form": "^7.63.0",
|
|
"react-select-country-list": "^2.2.3",
|
|
"sonner": "^2.0.7",
|
|
"tailwind-merge": "^3.3.1"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/eslintrc": "^3",
|
|
"@tailwindcss/postcss": "^4",
|
|
"@types/node": "^20",
|
|
"@types/nodemailer": "^7.0.2",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"@types/react-select-country-list": "^2.2.3",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "15.5.4",
|
|
"tailwindcss": "^4",
|
|
"tw-animate-css": "^1.4.0",
|
|
"typescript": "^5",
|
|
"vitest": "^4.1.0"
|
|
}
|
|
}
|