pass the template to the /api/chat endpoint

This commit is contained in:
Patrick Devine
2024-07-10 14:17:39 -07:00
parent 4cfcbc328f
commit 3c0d043b79
4 changed files with 34 additions and 8 deletions

View File

@@ -947,6 +947,7 @@ func chat(cmd *cobra.Command, opts runOptions) (*api.Message, error) {
req := &api.ChatRequest{
Model: opts.Model,
Template: opts.Template,
Messages: opts.Messages,
Format: opts.Format,
Options: opts.Options,