marshal json automatically for some template values (#5758)

This commit is contained in:
Michael Yang
2024-07-17 15:35:11 -07:00
committed by GitHub
parent b23424bb3c
commit b255445557
8 changed files with 72 additions and 52 deletions

View File

@@ -150,9 +150,9 @@ func (t *Template) Vars() []string {
type Values struct {
Messages []api.Message
Tools []api.Tool
Prompt string
Suffix string
api.Tools
Prompt string
Suffix string
// forceLegacy is a flag used to test compatibility with legacy templates
forceLegacy bool