mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
Restore Checkpoint Feature (#934)
This commit is contained in:
@@ -77,6 +77,16 @@ export class GeminiClient {
|
||||
return this.chat;
|
||||
}
|
||||
|
||||
async getHistory(): Promise<Content[]> {
|
||||
const chat = await this.chat;
|
||||
return chat.getHistory();
|
||||
}
|
||||
|
||||
async setHistory(history: Content[]): Promise<void> {
|
||||
const chat = await this.chat;
|
||||
chat.setHistory(history);
|
||||
}
|
||||
|
||||
private async getEnvironment(): Promise<Part[]> {
|
||||
const cwd = process.cwd();
|
||||
const today = new Date().toLocaleDateString(undefined, {
|
||||
|
||||
Reference in New Issue
Block a user