Latest API version is now automatically calculated
This commit is contained in:
parent
8482df0d8d
commit
c0c9d62cd7
|
@ -582,8 +582,6 @@ tags = [
|
||||||
|
|
||||||
api_version = None # This gets set automatically so don't change this value
|
api_version = None # This gets set automatically so don't change this value
|
||||||
|
|
||||||
api_latest_version = "1.1.1" # Set this to the latest API version available
|
|
||||||
|
|
||||||
api_v1 = KoboldAPISpec(
|
api_v1 = KoboldAPISpec(
|
||||||
version="1.1.1",
|
version="1.1.1",
|
||||||
prefixes=["/api/v1", "/api/latest"],
|
prefixes=["/api/v1", "/api/latest"],
|
||||||
|
@ -7290,7 +7288,7 @@ def get_version_latest():
|
||||||
example:
|
example:
|
||||||
result: 1.0.0
|
result: 1.0.0
|
||||||
"""
|
"""
|
||||||
return {"result": api_latest_version}
|
return {"result": api_versions[-1]}
|
||||||
|
|
||||||
|
|
||||||
@api_v1.get("/info/version/list")
|
@api_v1.get("/info/version/list")
|
||||||
|
|
Loading…
Reference in New Issue