mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 12:11:09 +00:00
refactor: maintain 1 GeminiChat per GeminiClient (#710)
This commit is contained in:
parent
447826ab40
commit
74801e9004
7 changed files with 26 additions and 46 deletions
|
|
@ -42,7 +42,7 @@ export async function runNonInteractive(
|
|||
const geminiClient = new GeminiClient(config);
|
||||
const toolRegistry: ToolRegistry = await config.getToolRegistry();
|
||||
|
||||
const chat = await geminiClient.startChat();
|
||||
const chat = await geminiClient.getChat();
|
||||
const abortController = new AbortController();
|
||||
let currentMessages: Content[] = [{ role: 'user', parts: [{ text: input }] }];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue