MCPcopy
hub / github.com/gpustack/gpustack / update

Function update

gpustack/routes/update.py:11–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10@router.get("/")
11async def update():
12 update_response = await get_update()
13
14 if is_newer_version(update_response.latest_version, __version__):
15 return update_response
16
17 return UpdateResponse(latest_version=__version__)
18
19
20def is_newer_version(given: str, current: str) -> bool:

Callers 3

propagate_user_renameFunction · 0.50
flush_heartbeatsFunction · 0.50
seal_dueMethod · 0.50

Calls 3

get_updateFunction · 0.90
UpdateResponseClass · 0.90
is_newer_versionFunction · 0.85

Tested by

no test coverage detected