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]);
|
}, [handleFile]);
|
||||||
|
|
||||||
const handleGenerate = useCallback(async () => {
|
const handleGenerate = useCallback(async () => {
|
||||||
|
console.log('handleGenerate called', { aiMode, preview: !!preview, svgContent: !!svgContent, isLoading });
|
||||||
|
|
||||||
// Validate AI configuration before processing
|
// Validate AI configuration before processing
|
||||||
if (aiMode === 'offline') {
|
if (aiMode === 'offline') {
|
||||||
if (!ollamaUrl) {
|
if (!ollamaUrl) {
|
||||||
|
|
@ -86,6 +88,7 @@ export function ImageUpload() {
|
||||||
// No external configuration needed - models run in browser
|
// No external configuration needed - models run in browser
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('Validation passed, starting processing...');
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
setError(null);
|
setError(null);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue