ConnectionTest im Backend funktioniert jetzt

This commit is contained in:
2025-08-07 14:34:00 +02:00
parent 573661825b
commit ad893b48a7
21 changed files with 580 additions and 109 deletions

View File

@@ -227,4 +227,16 @@ class ComfyUi implements ApiPluginInterface
usleep(500000); // Wait for 0.5 seconds before polling again
}
}
public function testConnection(array $data): bool
{
$apiUrl = rtrim($data['api_url'], '/');
try {
$response = Http::timeout(5)->get($apiUrl . '/queue');
return $response->successful();
} catch (\Exception $e) {
$this->logError('ComfyUI connection test failed.', ['error' => $e->getMessage()]);
return false;
}
}
}