diff options
author | abc <98614666+xtekky@users.noreply.github.com> | 2023-08-17 15:01:59 +0200 |
---|---|---|
committer | abc <98614666+xtekky@users.noreply.github.com> | 2023-08-17 15:01:59 +0200 |
commit | c1101f9a0c8274a7b3afac8248f602e5c10944c4 (patch) | |
tree | f14287e9fdcdeffafacd685dfac00275965a3d78 /tool/readme_table.py | |
parent | ~ | major refractoring | v0.0.2.0 (diff) | |
download | gpt4free-c1101f9a0c8274a7b3afac8248f602e5c10944c4.tar gpt4free-c1101f9a0c8274a7b3afac8248f602e5c10944c4.tar.gz gpt4free-c1101f9a0c8274a7b3afac8248f602e5c10944c4.tar.bz2 gpt4free-c1101f9a0c8274a7b3afac8248f602e5c10944c4.tar.lz gpt4free-c1101f9a0c8274a7b3afac8248f602e5c10944c4.tar.xz gpt4free-c1101f9a0c8274a7b3afac8248f602e5c10944c4.tar.zst gpt4free-c1101f9a0c8274a7b3afac8248f602e5c10944c4.zip |
Diffstat (limited to 'tool/readme_table.py')
-rw-r--r-- | tool/readme_table.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tool/readme_table.py b/tool/readme_table.py index a4d07adf..10735ba0 100644 --- a/tool/readme_table.py +++ b/tool/readme_table.py @@ -5,8 +5,8 @@ from urllib.parse import urlparse sys.path.append(str(Path(__file__).parent.parent)) -from g4f import models, provider -from g4f.provider.base_provider import BaseProvider +from g4f import models, Provider +from g4f.Provider.base_provider import BaseProvider def main(): @@ -44,7 +44,7 @@ def print_providers(): def get_providers() -> list[type[BaseProvider]]: - provider_names = dir(provider) + provider_names = dir(Provider) ignore_names = [ "base_provider", "BaseProvider", @@ -54,7 +54,7 @@ def get_providers() -> list[type[BaseProvider]]: for provider_name in provider_names if not provider_name.startswith("__") and provider_name not in ignore_names ] - return [getattr(provider, provider_name) for provider_name in provider_names] + return [getattr(Provider, provider_name) for provider_name in provider_names] def print_models(): |