mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
clean chat history before /resume (#949)
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user