Add an `API_VERSION` variable to Lua bridge
This commit is contained in:
parent
3ba0e3f9d9
commit
293b75e89f
|
@ -145,6 +145,7 @@ return function(_python, _bridged)
|
||||||
--==========================================================================
|
--==========================================================================
|
||||||
|
|
||||||
---@class KoboldLib
|
---@class KoboldLib
|
||||||
|
---@field API_VERSION number
|
||||||
---@field authorsnote string
|
---@field authorsnote string
|
||||||
---@field authorsnotetemplate string
|
---@field authorsnotetemplate string
|
||||||
---@field memory string
|
---@field memory string
|
||||||
|
@ -164,7 +165,7 @@ return function(_python, _bridged)
|
||||||
---@field num_outputs integer
|
---@field num_outputs integer
|
||||||
---@field feedback string
|
---@field feedback string
|
||||||
---@field is_config_file_open boolean
|
---@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_mt = setmetatable({}, metawrapper)
|
||||||
local KoboldLib_getters = setmetatable({}, metawrapper)
|
local KoboldLib_getters = setmetatable({}, metawrapper)
|
||||||
local KoboldLib_setters = setmetatable({}, metawrapper)
|
local KoboldLib_setters = setmetatable({}, metawrapper)
|
||||||
|
|
Loading…
Reference in New Issue