mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 08:26:21 +02:00
Fix kg-core downloading (#371)
This commit is contained in:
parent
4461d7b289
commit
fdd9a9a9ae
2 changed files with 16 additions and 14 deletions
|
|
@ -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)
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue