From b202958c02adf8476bc982beaac5f3e4ae7c7bfa Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Thu, 5 Dec 2024 17:53:47 +0100 Subject: Update discord link --- g4f/Provider/needs_auth/DeepInfraImage.py | 2 +- g4f/gui/client/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'g4f') diff --git a/g4f/Provider/needs_auth/DeepInfraImage.py b/g4f/Provider/needs_auth/DeepInfraImage.py index 44790561..32ce683a 100644 --- a/g4f/Provider/needs_auth/DeepInfraImage.py +++ b/g4f/Provider/needs_auth/DeepInfraImage.py @@ -74,7 +74,7 @@ class DeepInfraImage(AsyncGeneratorProvider, ProviderModelMixin): async with session.post(f"{api_base.rstrip('/')}/{model}", json=data) as response: await raise_for_status(response) data = await response.json() - images = data.get("output", data.get("images")) + images = data.get("output", data.get("images", data.get("image_url"))) if not images: raise RuntimeError(f"Response: {data}") images = images[0] if len(images) == 1 else images diff --git a/g4f/gui/client/index.html b/g4f/gui/client/index.html index 5ffd7d00..301de1b8 100644 --- a/g4f/gui/client/index.html +++ b/g4f/gui/client/index.html @@ -72,7 +72,7 @@
- discord ~ discord.gg/vE7gCvss + discord ~ discord.gg/qXA4Wf4Fsm
-- cgit v1.2.3