diff options
Diffstat (limited to 'g4f/Provider/DeepInfraImage.py')
-rw-r--r-- | g4f/Provider/DeepInfraImage.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g4f/Provider/DeepInfraImage.py b/g4f/Provider/DeepInfraImage.py index 6099b793..ce09533b 100644 --- a/g4f/Provider/DeepInfraImage.py +++ b/g4f/Provider/DeepInfraImage.py @@ -70,5 +70,7 @@ class DeepInfraImage(AsyncGeneratorProvider, ProviderModelMixin): await raise_for_status(response) data = await response.json() images = data["output"] if "output" in data else data["images"] + if not images: + raise RuntimeError(f"Response: {data}") images = images[0] if len(images) == 1 else images return ImageResponse(images, prompt)
\ No newline at end of file |