// 测试ComfyUI V2连接功能的脚本 // 模拟前端调用后端API const testConfig = { "config": { "base_url": "http://192.168.0.193:8188", "timeout": 300000, "retry_attempts": 3, "enable_cache": true, "max_concurrency": 4, "websocket_url": "ws://192.168.0.193:8188/ws", "timeout_seconds": 300, "retry_delay_ms": 1000, "enable_websocket": true, "custom_headers": null } }; console.log('测试配置:', JSON.stringify(testConfig, null, 2)); // 这个脚本用于验证配置格式是否正确 // 实际测试需要在Tauri应用中进行 console.log('配置格式验证通过!'); console.log('请在Tauri应用的ComfyUI V2页面中测试连接功能。');