summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiNiyas <niyasmohammed64@gmail.com>2023-12-19 06:08:12 +0100
committerNiNiyas <niyasmohammed64@gmail.com>2023-12-19 06:08:12 +0100
commit0b2f7898d41f05a444c18151fb240b380f675e92 (patch)
tree2c07aa417732f4167cfc736c2d9dc3b7a7785543
parentMerge pull request #1356 from eminemkun/main (diff)
downloadgpt4free-0b2f7898d41f05a444c18151fb240b380f675e92.tar
gpt4free-0b2f7898d41f05a444c18151fb240b380f675e92.tar.gz
gpt4free-0b2f7898d41f05a444c18151fb240b380f675e92.tar.bz2
gpt4free-0b2f7898d41f05a444c18151fb240b380f675e92.tar.lz
gpt4free-0b2f7898d41f05a444c18151fb240b380f675e92.tar.xz
gpt4free-0b2f7898d41f05a444c18151fb240b380f675e92.tar.zst
gpt4free-0b2f7898d41f05a444c18151fb240b380f675e92.zip
Diffstat (limited to '')
-rw-r--r--g4f/debug.py4
-rw-r--r--g4f/gui/server/backend.py2
2 files changed, 3 insertions, 3 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:
diff --git a/g4f/gui/server/backend.py b/g4f/gui/server/backend.py
index e4669699..105edb43 100644
--- a/g4f/gui/server/backend.py
+++ b/g4f/gui/server/backend.py
@@ -54,7 +54,7 @@ class Backend_Api:
def version(self):
return {
"version": debug.get_version(),
- "lastet_version": debug.get_lastet_version(),
+ "lastet_version": debug.get_latest_version(),
}
def _gen_title(self):