Skip to content

Commit 3080687

Browse files
committed
WIP
1 parent b793683 commit 3080687

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: pkg/engine/engine.go

+3
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ func putHistory(messages []types.CompletionMessage) []types.CompletionMessage {
255255
slog.Error("Unmarshal Error", err)
256256
return messages
257257
}
258+
if message.Role == "system" {
259+
continue
260+
}
258261
prevMessages = append(prevMessages, message)
259262
}
260263

0 commit comments

Comments
 (0)