diff options
author | abc <98614666+xtekky@users.noreply.github.com> | 2023-09-17 23:24:22 +0200 |
---|---|---|
committer | abc <98614666+xtekky@users.noreply.github.com> | 2023-09-17 23:24:22 +0200 |
commit | 54f4f3904e018bb36b2d76a5a6880da69f6a324e (patch) | |
tree | c8906383c147dc9048f5db1debe46faf1e5418e4 /tool | |
parent | Update __init__.py (diff) | |
parent | Merge pull request #911 from xtekky/revert-907-fix-type-hint (diff) | |
download | gpt4free-54f4f3904e018bb36b2d76a5a6880da69f6a324e.tar gpt4free-54f4f3904e018bb36b2d76a5a6880da69f6a324e.tar.gz gpt4free-54f4f3904e018bb36b2d76a5a6880da69f6a324e.tar.bz2 gpt4free-54f4f3904e018bb36b2d76a5a6880da69f6a324e.tar.lz gpt4free-54f4f3904e018bb36b2d76a5a6880da69f6a324e.tar.xz gpt4free-54f4f3904e018bb36b2d76a5a6880da69f6a324e.tar.zst gpt4free-54f4f3904e018bb36b2d76a5a6880da69f6a324e.zip |
Diffstat (limited to '')
-rw-r--r-- | tool/provider_init.py | 4 | ||||
-rw-r--r-- | tool/readme_table.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tool/provider_init.py b/tool/provider_init.py index fac099ed..cd7f9333 100644 --- a/tool/provider_init.py +++ b/tool/provider_init.py @@ -3,13 +3,13 @@ from pathlib import Path def main(): content = create_content() - with open("g4f/Provider/__init__.py", "w", encoding="utf-8") as f: + with open("g4f/provider/__init__.py", "w", encoding="utf-8") as f: f.write(content) def create_content(): path = Path() - paths = path.glob("g4f/Provider/*.py") + paths = path.glob("g4f/provider/*.py") paths = [p for p in paths if p.name not in ["__init__.py", "base_provider.py"]] classnames = [p.stem for p in paths] diff --git a/tool/readme_table.py b/tool/readme_table.py index 0598584d..9e43b0ae 100644 --- a/tool/readme_table.py +++ b/tool/readme_table.py @@ -81,7 +81,7 @@ def print_providers(): netloc = urlparse(_provider.url).netloc website = f"[{netloc}]({_provider.url})" - provider_name = f"g4f.Provider.{_provider.__name__}" + provider_name = f"g4f.provider.{_provider.__name__}" has_gpt_35 = "✔️" if _provider.supports_gpt_35_turbo else "❌" has_gpt_4 = "✔️" if _provider.supports_gpt_4 else "❌" @@ -128,7 +128,7 @@ def print_models(): name = re.split(r":|/", model.name)[-1] base_provider = base_provider_names[model.base_provider] - provider_name = f"g4f.Provider.{model.best_provider.__name__}" + provider_name = f"g4f.provider.{model.best_provider.__name__}" provider_url = provider_urls[model.best_provider.__name__] netloc = urlparse(provider_url).netloc website = f"[{netloc}]({provider_url})" |