Skip to content

Commit 2a42d03

Browse files
authored
fix(core): aiWaitFor should use modelConfig with intent VQA (#1264)
1 parent 3281a4b commit 2a42d03

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/core/src/agent/agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ export class Agent<
868868
}
869869

870870
async aiWaitFor(assertion: TUserPrompt, opt?: AgentWaitForOpt) {
871-
const modelConfig = this.modelConfigManager.getModelConfig('default');
871+
const modelConfig = this.modelConfigManager.getModelConfig('VQA');
872872
const { executor } = await this.taskExecutor.waitFor(
873873
assertion,
874874
{

packages/core/src/agent/tasks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,7 @@ export class TaskExecutor {
10711071
},
10721072
locate: null,
10731073
};
1074+
// The convertPlanToExecutable requires modelConfig as a parameter but will not consume it when type is Sleep
10741075
const { tasks: sleepTasks } = await this.convertPlanToExecutable(
10751076
[sleepPlan],
10761077
modelConfig,

0 commit comments

Comments
 (0)