summaryrefslogtreecommitdiffstats
path: root/g4f/gui/server
diff options
context:
space:
mode:
Diffstat (limited to 'g4f/gui/server')
-rw-r--r--g4f/gui/server/api.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/g4f/gui/server/api.py b/g4f/gui/server/api.py
index bbae6066..d8c3aaf8 100644
--- a/g4f/gui/server/api.py
+++ b/g4f/gui/server/api.py
@@ -43,7 +43,16 @@ class Api():
"""
Return a list of all working providers.
"""
- return [provider.__name__ for provider in __providers__ if provider.working]
+ return {
+ provider.__name__: (provider.label
+ if hasattr(provider, "label")
+ else provider.__name__) +
+ (" (WebDriver)"
+ if "webdriver" in provider.get_parameters()
+ else "")
+ for provider in __providers__
+ if provider.working
+ }
def get_version(self):
"""