tools test

This commit is contained in:
Michael Yang
2024-07-15 12:17:38 -07:00
parent d02bbebb11
commit ef5136a745
10 changed files with 363 additions and 4 deletions

View File

@@ -13,7 +13,6 @@ import (
"sync"
"text/template"
"text/template/parse"
"time"
"github.com/agnivade/levenshtein"
"github.com/ollama/ollama/api"
@@ -108,9 +107,6 @@ var funcs = template.FuncMap{
b, _ := json.Marshal(v)
return string(b)
},
"now": func() string {
return time.Now().Format("2006-01-02 15:04:05")
},
}
func Parse(s string) (*Template, error) {