From c0c9d62cd70e285bd30c973fcd642eee3a22e688 Mon Sep 17 00:00:00 2001 From: vfbd Date: Thu, 11 Aug 2022 14:00:43 -0400 Subject: [PATCH] Latest API version is now automatically calculated --- aiserver.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/aiserver.py b/aiserver.py index c4990c6b..38796e1d 100644 --- a/aiserver.py +++ b/aiserver.py @@ -582,8 +582,6 @@ tags = [ 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( version="1.1.1", prefixes=["/api/v1", "/api/latest"], @@ -7290,7 +7288,7 @@ def get_version_latest(): example: result: 1.0.0 """ - return {"result": api_latest_version} + return {"result": api_versions[-1]} @api_v1.get("/info/version/list")