mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 16:36:21 +02:00
* Dual-mode templates * Fixed generate-all so that works * Fix ability to specify Claude model
24 lines
555 B
Jsonnet
24 lines
555 B
Jsonnet
local default_prompts = import "prompts/default-prompts.jsonnet";
|
|
|
|
{
|
|
|
|
with:: function(key, value)
|
|
if (key == "system-template") then
|
|
self + {
|
|
prompts +:: {
|
|
"system-template": value,
|
|
}
|
|
}
|
|
else
|
|
self + {
|
|
prompts +:: {
|
|
templates +:: {
|
|
[key] +:: {
|
|
prompt: value
|
|
}
|
|
}
|
|
}
|
|
},
|
|
|
|
} + default_prompts
|
|
|