mirror of
				https://github.com/xtekky/gpt4free.git
				synced 2025-10-31 19:42:45 +08:00 
			
		
		
		
	fix(g4f): Fix typo in function name
This commit is contained in:
		| @@ -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: | ||||
|   | ||||
| @@ -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): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 NiNiyas
					NiNiyas