stub response (#5750)

This commit is contained in:
Michael Yang 2024-07-17 10:39:22 -07:00 committed by GitHub
parent cc9a252d8c
commit 5b82960df8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}