From 5b82960df840a8bd545b9a60a1b69c089e0e24f1 Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Wed, 17 Jul 2024 10:39:22 -0700 Subject: [PATCH] stub response (#5750) --- template/template.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/template/template.go b/template/template.go index 5330c0fa..85b4d21a 100644 --- a/template/template.go +++ b/template/template.go @@ -217,6 +217,7 @@ func (t *Template) Execute(w io.Writer, v Values) error { "System": system, "Messages": messages, "Tools": v.Tools, + "Response": "", }) } @@ -270,8 +271,9 @@ func (t *Template) Execute(w io.Writer, v Values) error { tree := parse.Tree{Root: nodes.(*parse.ListNode)} if err := template.Must(template.New("").AddParseTree("", &tree)).Execute(&b, map[string]any{ - "System": system, - "Prompt": prompt, + "System": system, + "Prompt": prompt, + "Response": "", }); err != nil { return err }