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 --- README.md | 2 +- g4f/Provider/needs_auth/DeepInfraImage.py | 2 +- g4f/gui/client/index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index be3f7491..7509af2e 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ docker pull hlohaus789/g4f - **For comprehensive details on new features and updates, please refer to our** [Releases](https://github.com/xtekky/gpt4free/releases) **page** - **Installation Guide for Windows (.exe):** 💻 [Installation Guide for Windows (.exe)](#installation-guide-for-windows-exe) - **Join our Telegram Channel:** 📨 [telegram.me/g4f_channel](https://telegram.me/g4f_channel) - - **Join our Discord Group:** 💬🆕️ [discord.gg/vE7gCvss](https://discord.gg/vE7gCvss) + - **Join our Discord Group:** 💬🆕️ [discord.gg/qXA4Wf4Fsm](https://discord.gg/qXA4Wf4Fsm) ## 🔻 Site Takedown 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