Unverified Commit a4b8d1f8 authored by Patrick Devine's avatar Patrick Devine Committed by GitHub
Browse files

re-add system context (#4435)

parent 798b107f
......@@ -292,6 +292,10 @@ func generateInteractive(cmd *cobra.Command, opts runOptions) error {
continue
case strings.HasPrefix(line, "/clear"):
opts.Messages = []api.Message{}
if opts.System != "" {
newMessage := api.Message{Role: "system", Content: opts.System}
opts.Messages = append(opts.Messages, newMessage)
}
fmt.Println("Cleared session context")
continue
case strings.HasPrefix(line, "/set"):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment