diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-04-12 20:58:40 +0200 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-04-12 20:58:40 +0200 |
commit | f724c07f1b8cb1b2360d8c6675688b15cbcd85ca (patch) | |
tree | 30a7f0a12c3f959fc5da519356b9d82c6f1520d7 /g4f/gui/server | |
parent | update default gpt-3.5-turbo models (diff) | |
download | gpt4free-f724c07f1b8cb1b2360d8c6675688b15cbcd85ca.tar gpt4free-f724c07f1b8cb1b2360d8c6675688b15cbcd85ca.tar.gz gpt4free-f724c07f1b8cb1b2360d8c6675688b15cbcd85ca.tar.bz2 gpt4free-f724c07f1b8cb1b2360d8c6675688b15cbcd85ca.tar.lz gpt4free-f724c07f1b8cb1b2360d8c6675688b15cbcd85ca.tar.xz gpt4free-f724c07f1b8cb1b2360d8c6675688b15cbcd85ca.tar.zst gpt4free-f724c07f1b8cb1b2360d8c6675688b15cbcd85ca.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/gui/server/api.py | 11 |
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): """ |