[Update] (Affect to backend) Plugin System. Saveable if the plugin is enabled or not.
Add functions that merge plugins data.
This commit is contained in:
@@ -1061,6 +1061,15 @@ class Controller:
|
||||
config.HOTKEYS = data
|
||||
return {"status":200, "result":config.HOTKEYS}
|
||||
|
||||
@staticmethod
|
||||
def getPluginsStatus(*args, **kwargs) -> dict:
|
||||
return {"status":200, "result":config.PLUGINS_STATUS}
|
||||
|
||||
@staticmethod
|
||||
def setPluginsStatus(data, *args, **kwargs) -> dict:
|
||||
config.PLUGINS_STATUS = data
|
||||
return {"status":200, "result":config.PLUGINS_STATUS}
|
||||
|
||||
@staticmethod
|
||||
def getSpeakerAvgLogprob(*args, **kwargs) -> dict:
|
||||
return {"status":200, "result":config.SPEAKER_AVG_LOGPROB}
|
||||
|
||||
Reference in New Issue
Block a user