Skip to content

Commit

Permalink
stub response (ollama#5750)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxyng authored Jul 17, 2024
1 parent cc9a252 commit 5b82960
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ func (t *Template) Execute(w io.Writer, v Values) error {
"System": system,
"Messages": messages,
"Tools": v.Tools,
"Response": "",
})
}

Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 5b82960

Please sign in to comment.