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 4e81090
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@
/binaries
/checksums.txt
/.env*
ui/
gptscript.code-workspace
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 4e81090

Please sign in to comment.