mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-10-23 15:29:50 +00:00
refactor(core): use ToolNames.ADVISOR constant in client.ts
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> Patrol-Run: qwen-pr-closeout/jmuh1ymde4p
This commit is contained in:
parent
3b49c699c7
commit
e3add752d9
1 changed files with 1 additions and 1 deletions
|
|
@ -4067,7 +4067,7 @@ export class LlmClient {
|
|||
if (this.config.getAdvisorModel?.()) {
|
||||
const registry = this.config.getToolRegistry();
|
||||
const advisorReminder = buildAdvisorReminder(
|
||||
!!registry.getTool('advisor'),
|
||||
!!registry.getTool(ToolNames.ADVISOR),
|
||||
registry.getFunctionDeclarations().map((tool) => tool.name),
|
||||
);
|
||||
if (advisorReminder) systemReminders.push(advisorReminder);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue