Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/commands/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ export function ChatCommand({options}: Props) {
return;
}
try {
appendToTrainingData({contextMessage: systemMessage, ...exchange});
const kept = {contextMessage: systemMessage, ...exchange};
appendToTrainingData(kept, false);
appendTurn({
role: 'info',
content: `Kept last exchange (${countExamples()} examples total).`,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/chat-helpers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ test.serial("saveTranscript output is importable by nanotune data import", (t) =
inProject("importable", () => {
mkdirSync(join(".nanotune", "data"), { recursive: true });
const path = saveTranscript(SYSTEM, HISTORY);
const result = importData(path, { role: "system", content: "ignored" });
const result = importData(path, { role: "system", content: "ignored" }, false);
t.deepEqual(result.errors, []);
t.is(result.imported, 1);
t.is(result.skipped, 0);
Expand Down
Loading
Loading