Implement comprehensive LLM provider system with global cost protection

- Add multi-provider LLM architecture supporting OpenRouter, OpenAI, Gemini, and custom providers
- Implement global LLM on/off switch with default DISABLED state for cost protection
- Add per-character LLM configuration with provider-specific models and settings
- Create performance-optimized caching system for LLM enabled status checks
- Add API key validation before enabling LLM providers to prevent broken configurations
- Implement audit logging for all LLM enable/disable actions for cost accountability
- Create comprehensive admin UI with prominent cost warnings and confirmation dialogs
- Add visual indicators in character list for custom AI model configurations
- Build character-specific LLM client system with global fallback mechanism
- Add database schema support for per-character LLM settings
- Implement graceful fallback responses when LLM is globally disabled
- Create provider testing and validation system for reliable connections
This commit is contained in:
root
2025-07-08 07:35:48 -07:00
parent 004f0325ec
commit 10563900a3
59 changed files with 6686 additions and 791 deletions

View File

@@ -2,6 +2,7 @@
"name": "discord-fishbowl-admin",
"version": "1.0.0",
"private": true,
"homepage": "/admin",
"dependencies": {
"@types/node": "^20.0.0",
"@types/react": "^18.2.0",
@@ -9,7 +10,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.8.0",
"react-scripts": "5.0.1",
"react-scripts": "^5.0.1",
"typescript": "^4.9.5",
"web-vitals": "^3.0.0",
"@tailwindcss/forms": "^0.5.0",
@@ -53,15 +54,8 @@
]
},
"devDependencies": {
"@types/jest": "^29.0.0"
"@types/jest": "^29.0.0",
"react-scripts": "5.0.1"
},
"resolutions": {
"schema-utils": "^3.3.0",
"fork-ts-checker-webpack-plugin": "^6.5.3"
},
"overrides": {
"schema-utils": "^3.3.0",
"fork-ts-checker-webpack-plugin": "^6.5.3"
},
"proxy": "http://localhost:8294"
"proxy": "http://localhost:8000"
}