Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
bindung committed Jul 9, 2024
1 parent b793683 commit 3080687
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ func putHistory(messages []types.CompletionMessage) []types.CompletionMessage {
slog.Error("Unmarshal Error", err)
return messages
}
if message.Role == "system" {
continue
}
prevMessages = append(prevMessages, message)
}

Expand Down

0 comments on commit 3080687

Please sign in to comment.