From 0b2f7898d41f05a444c18151fb240b380f675e92 Mon Sep 17 00:00:00 2001 From: NiNiyas Date: Tue, 19 Dec 2023 10:38:12 +0530 Subject: fix(g4f): Fix typo in function name --- g4f/debug.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'g4f/debug.py') diff --git a/g4f/debug.py b/g4f/debug.py index 1ee1506f..67664e5b 100644 --- a/g4f/debug.py +++ b/g4f/debug.py @@ -25,14 +25,14 @@ def get_version() -> str: pass raise VersionNotFoundError("Version not found") -def get_lastet_version() -> str: +def get_latest_version() -> str: response = get("https://pypi.org/pypi/g4f/json").json() return response["info"]["version"] def check_pypi_version() -> None: try: version = get_version() - latest_version = get_lastet_version() + latest_version = get_latest_version() if version != latest_version: print(f'New pypi version: {latest_version} (current: {version}) | pip install -U g4f') except Exception as e: -- cgit v1.2.3