clean chat history before /resume (#949)

This commit is contained in:
Seth Troisi
2025-06-11 13:40:44 -07:00
committed by GitHub
parent 7a72d255d8
commit 122678cc09
2 changed files with 18 additions and 2 deletions

View File

@@ -289,6 +289,13 @@ export class GeminiChat {
return structuredClone(history);
}
/**
* Clears the chat history.
*/
clearHistory(): void {
this.history = [];
}
/**
* Adds a new entry to the chat history.
*