logger updates

This commit is contained in:
Storme-bit
2026-04-26 22:28:54 -07:00
parent c86b565eed
commit 86e78cc4c6
23 changed files with 87 additions and 67 deletions

View File

@@ -2,6 +2,7 @@
import { useState, useEffect } from 'react';
import { fetchModels } from '../api/orchestration';
import { FALLBACK_MODELS, DEFAULT_MODEL } from '../config/constants';
const { logger } = require('@nexusai/shared');
export function useModels() {
const [models, setModels] = useState(FALLBACK_MODELS);
@@ -15,7 +16,7 @@ export function useModels() {
setSelectedModel(data[0]?.value ?? DEFAULT_MODEL);
})
.catch(err => {
console.warn('[useModels] Falling back to static list:', err.message);
logger.warn('[useModels] Falling back to static list:', err.message);
})
.finally(() => setLoading(false));
}, []);