From bc527237d2609e05039952e9a0e4aadd32cf204d Mon Sep 17 00:00:00 2001 From: Cyber MacGeddon Date: Sun, 27 Oct 2024 14:51:25 +0000 Subject: [PATCH] Add prompt terms --- templates/components/prompt-template.jsonnet | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/components/prompt-template.jsonnet b/templates/components/prompt-template.jsonnet index 25982eb3..1d34ab02 100644 --- a/templates/components/prompt-template.jsonnet +++ b/templates/components/prompt-template.jsonnet @@ -48,6 +48,13 @@ local default_prompts = import "prompts/default-prompts.jsonnet"; ) for p in std.objectKeysValuesAll($.prompts.templates) if std.objectHas(p.value, "schema") + ] + [ + "--prompt-term" + ] + [ + p.key + "=" + t.key + ":" + t.value + for p in std.objectKeysValuesAll($.prompts.templates) + if std.objectHas(p.value, "terms") + for t in std.objectKeysValuesAll(p.value.terms) ]) .with_limits("0.5", "128M") .with_reservations("0.1", "128M");