"...git@developer.sourcefind.cn:OpenDAS/torch-spline-conv.git" did not exist on "0f50488b7cd4c5fa9bd3d5ced7ded612a15a33c5"
Unverified Commit 5b82960d authored by Michael Yang's avatar Michael Yang Committed by GitHub
Browse files

stub response (#5750)

parent cc9a252d
...@@ -217,6 +217,7 @@ func (t *Template) Execute(w io.Writer, v Values) error { ...@@ -217,6 +217,7 @@ func (t *Template) Execute(w io.Writer, v Values) error {
"System": system, "System": system,
"Messages": messages, "Messages": messages,
"Tools": v.Tools, "Tools": v.Tools,
"Response": "",
}) })
} }
...@@ -270,8 +271,9 @@ func (t *Template) Execute(w io.Writer, v Values) error { ...@@ -270,8 +271,9 @@ func (t *Template) Execute(w io.Writer, v Values) error {
tree := parse.Tree{Root: nodes.(*parse.ListNode)} tree := parse.Tree{Root: nodes.(*parse.ListNode)}
if err := template.Must(template.New("").AddParseTree("", &tree)).Execute(&b, map[string]any{ if err := template.Must(template.New("").AddParseTree("", &tree)).Execute(&b, map[string]any{
"System": system, "System": system,
"Prompt": prompt, "Prompt": prompt,
"Response": "",
}); err != nil { }); err != nil {
return err return err
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment