fix: enable xAI (Grok) by default and improve provider visibility in dashboard

- Set Grok to enabled: true by default.
- Updated AppState to include raw AppConfig.
- Refactored dashboard to show all supported providers, including their configuration and initialization status (online, disabled, or error).
This commit is contained in:
2026-02-26 15:56:29 -05:00
parent c884abe57d
commit c5fb2357ff
5 changed files with 67 additions and 20 deletions

View File

@@ -113,7 +113,7 @@ async fn main() -> Result<()> {
};
// Create application state
let state = AppState::new(provider_manager, db_pool, rate_limit_manager, model_registry, config.server.auth_tokens.clone());
let state = AppState::new(config.clone(), provider_manager, db_pool, rate_limit_manager, model_registry, config.server.auth_tokens.clone());
// Create application router
let app = Router::new()