From c1101f9a0c8274a7b3afac8248f602e5c10944c4 Mon Sep 17 00:00:00 2001 From: abc <98614666+xtekky@users.noreply.github.com> Date: Thu, 17 Aug 2023 15:01:59 +0200 Subject: ~ v0.0.2.0 --- tool/readme_table.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tool') 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(): -- cgit v1.2.3