X-Git-Url: http://git.giacomolli.uk/onechat/blobdiff_plain/30fbeb13a74942c6d515cc2a51eab7407a78c325..cc5d2d2d302e810c6d9b862035e9f8de91941390:/compactor.go?ds=sidebyside diff --git a/compactor.go b/compactor.go index 6840fd4..16303b0 100644 --- a/compactor.go +++ b/compactor.go @@ -68,6 +68,7 @@ func (c *Compactor) Summarize(ctx context.Context, task Task) (string, error) { Instructions: c.instructions, Tools: c.tools, Input: []any{userMessage(parts...)}, + Node: &nodeKey{task.Level, task.Index}, }) if err != nil { break @@ -129,7 +130,7 @@ func tooLong(line string) string { return fmt.Sprintf(`Too long: your last line for this was %d bytes, over the %d-byte limit. Write the whole line again, cutting just enough of the least valuable items to fit before this cut: -%s| ← LIMIT`, len(line), nodeBytes, cutLine(line)) +%s| <- LIMIT`, len(line), nodeBytes, cutLine(line)) } // cutLine returns the first nodeBytes bytes of line, without a part of a