Fix kg-core downloading (#371)

This commit is contained in:
cybermaggedon 2025-05-07 14:38:48 +01:00 committed by GitHub
parent 4461d7b289
commit fdd9a9a9ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 14 deletions

View file

@ -25,9 +25,9 @@ def set_system(url, system):
def set_prompt(url, id, prompt, response, schema):
api = Api(url)
api = Api(url).config()
values = api.config_get([
values = api.get([
ConfigKey(type="prompt", key="template-index")
])
@ -49,7 +49,7 @@ def set_prompt(url, id, prompt, response, schema):
if id not in ix:
ix.append(id)
values = api.config_put([
values = api.put([
ConfigValue(
type="prompt", key="template-index", value=json.dumps(ix)
),