From bb34642fcb60c64f152bbc3210ccb85d32f1c947 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Thu, 7 Dec 2023 14:30:55 +0100 Subject: Update readme. Add docker hub --- g4f/gui/server/backend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'g4f/gui') diff --git a/g4f/gui/server/backend.py b/g4f/gui/server/backend.py index 082e31b2..b0c55c8a 100644 --- a/g4f/gui/server/backend.py +++ b/g4f/gui/server/backend.py @@ -1,4 +1,5 @@ import g4f +from g4f.Provider import __providers__ from flask import request from .internet import get_search_message @@ -45,8 +46,7 @@ class Backend_Api: def providers(self): return [ - provider.__name__ for provider in g4f.Provider.__providers__ - if provider.working and provider is not g4f.Provider.RetryProvider + provider.__name__ for provider in __providers__ if provider.working ] def version(self): -- cgit v1.2.3