mirror of
https://github.com/stackblitz/bolt.new
synced 2025-02-06 04:48:04 +00:00
moved log to only print on change, and changed error logs to warnings
This commit is contained in:
parent
7d84a61801
commit
af09104c82
@ -147,7 +147,9 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
|
||||
return () => clearInterval(interval);
|
||||
}, [PROVIDER_LIST]);
|
||||
|
||||
console.log(transcript);
|
||||
useEffect(() => {
|
||||
console.log(transcript);
|
||||
},[transcript])
|
||||
useEffect(() => {
|
||||
// Load API keys from cookies on component mount
|
||||
try {
|
||||
|
@ -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 [];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user