summaryrefslogtreecommitdiffstats
path: root/g4f/debug.py
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2023-12-19 21:41:39 +0100
committerGitHub <noreply@github.com>2023-12-19 21:41:39 +0100
commit5c3b65b4f0f0653f46eac5c48a444ee61af0b4d4 (patch)
treeb1bb1c5c98dd73469fa850e4f5d5a342b8ac5314 /g4f/debug.py
parentMerge pull request #1364 from eminemkun/main (diff)
parentfix(g4f): Fix typo in function name (diff)
downloadgpt4free-5c3b65b4f0f0653f46eac5c48a444ee61af0b4d4.tar
gpt4free-5c3b65b4f0f0653f46eac5c48a444ee61af0b4d4.tar.gz
gpt4free-5c3b65b4f0f0653f46eac5c48a444ee61af0b4d4.tar.bz2
gpt4free-5c3b65b4f0f0653f46eac5c48a444ee61af0b4d4.tar.lz
gpt4free-5c3b65b4f0f0653f46eac5c48a444ee61af0b4d4.tar.xz
gpt4free-5c3b65b4f0f0653f46eac5c48a444ee61af0b4d4.tar.zst
gpt4free-5c3b65b4f0f0653f46eac5c48a444ee61af0b4d4.zip
Diffstat (limited to 'g4f/debug.py')
-rw-r--r--g4f/debug.py4
1 files changed, 2 insertions, 2 deletions
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: