mirror of
https://github.com/vndangkhoa/Sys-Arc-Visl.git
synced 2026-04-05 01:17:57 +07:00
debug: add logging to handleGenerate
This commit is contained in:
parent
51c60c3c00
commit
a9c903dc29
1 changed files with 3 additions and 0 deletions
|
|
@ -66,6 +66,8 @@ export function ImageUpload() {
|
|||
}, [handleFile]);
|
||||
|
||||
const handleGenerate = useCallback(async () => {
|
||||
console.log('handleGenerate called', { aiMode, preview: !!preview, svgContent: !!svgContent, isLoading });
|
||||
|
||||
// Validate AI configuration before processing
|
||||
if (aiMode === 'offline') {
|
||||
if (!ollamaUrl) {
|
||||
|
|
@ -86,6 +88,7 @@ export function ImageUpload() {
|
|||
// No external configuration needed - models run in browser
|
||||
}
|
||||
|
||||
console.log('Validation passed, starting processing...');
|
||||
setLoading(true);
|
||||
setError(null);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue