fix build errors

This commit is contained in:
Bruce MacDonald
2023-08-09 10:45:57 -04:00
parent 7a5f3616fd
commit 09d8bf6730
2 changed files with 3 additions and 3 deletions

View File

@@ -87,13 +87,13 @@ func GenerateHandler(c *gin.Context) {
}
if opts.NumKeep < 0 {
promptWithSystem, err := model.Prompt(api.GenerateRequest{})
promptWithSystem, err := model.Prompt(api.GenerateRequest{}, "")
if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
return
}
promptNoSystem, err := model.Prompt(api.GenerateRequest{Context: []int{0}})
promptNoSystem, err := model.Prompt(api.GenerateRequest{Context: []int{0}}, "")
if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
return