mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-02 21:50:34 +00:00
BIG PYTHON REFACTOR
Python scripts moved out of python/ folder to root to be unified with plugins + frontend extension around api calls
This commit is contained in:
parent
f94b7d742c
commit
d02dda3667
326 changed files with 1096 additions and 862 deletions
|
|
@ -1,19 +0,0 @@
|
|||
from python.helpers import git, runtime
|
||||
import hashlib
|
||||
|
||||
|
||||
async def check_version():
|
||||
import httpx
|
||||
|
||||
current_version = git.get_version()
|
||||
if not git.is_official_agent_zero_repo():
|
||||
current_version = "fork"
|
||||
|
||||
anonymized_id = hashlib.sha256(runtime.get_persistent_id().encode()).hexdigest()[:20]
|
||||
|
||||
url = "https://api.agent-zero.ai/a0-update-check"
|
||||
payload = {"current_version": current_version, "anonymized_id": anonymized_id}
|
||||
async with httpx.AsyncClient() as client:
|
||||
response = await client.post(url, json=payload)
|
||||
version = response.json()
|
||||
return version
|
||||
Loading…
Add table
Add a link
Reference in a new issue