summaryrefslogtreecommitdiffstats
path: root/g4f/gui/server/provider.py
diff options
context:
space:
mode:
authorCommenter123321 <36051603+Commenter123321@users.noreply.github.com>2023-10-10 14:47:41 +0200
committerCommenter123321 <36051603+Commenter123321@users.noreply.github.com>2023-10-10 14:47:41 +0200
commitd719860e2af8a825a9e2eaf6dc97c375ff535cbb (patch)
tree416e0be4af84ff303e2b8c565a04e6530e8bc7b4 /g4f/gui/server/provider.py
parentAivvm is the best provider no cap (diff)
downloadgpt4free-d719860e2af8a825a9e2eaf6dc97c375ff535cbb.tar
gpt4free-d719860e2af8a825a9e2eaf6dc97c375ff535cbb.tar.gz
gpt4free-d719860e2af8a825a9e2eaf6dc97c375ff535cbb.tar.bz2
gpt4free-d719860e2af8a825a9e2eaf6dc97c375ff535cbb.tar.lz
gpt4free-d719860e2af8a825a9e2eaf6dc97c375ff535cbb.tar.xz
gpt4free-d719860e2af8a825a9e2eaf6dc97c375ff535cbb.tar.zst
gpt4free-d719860e2af8a825a9e2eaf6dc97c375ff535cbb.zip
Diffstat (limited to '')
-rw-r--r--g4f/gui/server/provider.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/g4f/gui/server/provider.py b/g4f/gui/server/provider.py
index 286f881b..230b5f5f 100644
--- a/g4f/gui/server/provider.py
+++ b/g4f/gui/server/provider.py
@@ -1,6 +1,8 @@
import g4f
+from g4f import BaseProvider
-def get_provider(provider: str) -> g4f.Provider.BaseProvider:
+
+def get_provider(provider: str) -> BaseProvider | None:
if isinstance(provider, str):
print(provider)