mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
fix(cli): correctly handle tool invocation cancellation (#844)
This commit is contained in:
@@ -58,6 +58,11 @@ export class GeminiClient {
|
||||
this.chat = this.startChat();
|
||||
}
|
||||
|
||||
async addHistory(content: Content) {
|
||||
const chat = await this.chat;
|
||||
chat.addHistory(content);
|
||||
}
|
||||
|
||||
getChat(): Promise<GeminiChat> {
|
||||
return this.chat;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user