moved log to only print on change, and changed error logs to warnings

This commit is contained in:
Anirban Kar 2024-12-10 23:02:54 +05:30
parent 7d84a61801
commit af09104c82
2 changed files with 5 additions and 3 deletions

View File

@ -147,7 +147,9 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
return () => clearInterval(interval);
}, [PROVIDER_LIST]);
useEffect(() => {
console.log(transcript);
},[transcript])
useEffect(() => {
// Load API keys from cookies on component mount
try {

View File

@ -384,7 +384,7 @@ async function getOllamaModels(): Promise<ModelInfo[]> {
maxTokenAllowed: 8000,
}));
} catch (e) {
console.error('Error getting Ollama models:', e);
console.warn('Failed to get Ollama models:', e);
return [];
}
}
@ -472,7 +472,7 @@ async function getLMStudioModels(): Promise<ModelInfo[]> {
provider: 'LMStudio',
}));
} catch (e) {
console.error('Error getting LMStudio models:', e);
console.warn('Failed to get LMStudio models:', e);
return [];
}
}