Add an `API_VERSION` variable to Lua bridge

This commit is contained in:
Gnome Ann 2022-01-17 14:28:08 -05:00
parent 3ba0e3f9d9
commit 293b75e89f
1 changed files with 2 additions and 1 deletions

View File

@ -145,6 +145,7 @@ return function(_python, _bridged)
--==========================================================================
---@class KoboldLib
---@field API_VERSION number
---@field authorsnote string
---@field authorsnotetemplate string
---@field memory string
@ -164,7 +165,7 @@ return function(_python, _bridged)
---@field num_outputs integer
---@field feedback string
---@field is_config_file_open boolean
local kobold = setmetatable({}, metawrapper)
local kobold = setmetatable({API_VERSION = 1.0}, metawrapper)
local KoboldLib_mt = setmetatable({}, metawrapper)
local KoboldLib_getters = setmetatable({}, metawrapper)
local KoboldLib_setters = setmetatable({}, metawrapper)