diff options
author | Commenter123321 <36051603+Commenter123321@users.noreply.github.com> | 2023-10-10 14:47:41 +0200 |
---|---|---|
committer | Commenter123321 <36051603+Commenter123321@users.noreply.github.com> | 2023-10-10 14:47:41 +0200 |
commit | d719860e2af8a825a9e2eaf6dc97c375ff535cbb (patch) | |
tree | 416e0be4af84ff303e2b8c565a04e6530e8bc7b4 /g4f/gui/server/provider.py | |
parent | Aivvm is the best provider no cap (diff) | |
download | gpt4free-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.py | 4 |
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) |