Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/lib/agent/LocalAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ Continue upon the previous steps what has been done so far and suggest next step
`;
const userPromptTokens = TokenCounter.countMessage(new HumanMessage(userPrompt));
const browserStateMessage = await this._getBrowserStateMessage(
/* includeScreenshot */ this.executionContext.supportsVision() && this.executionContext.isLimitedContextMode(),
/* includeScreenshot */ this.executionContext.supportsVision() && !this.executionContext.isLimitedContextMode(),
/* simplified */ true,
/* screenshotSize */ "large",
/* includeBrowserState */ true,
Expand Down Expand Up @@ -832,7 +832,7 @@ Continue upon the previous steps what has been done so far and suggest next step
const additionalTokens = TokenCounter.countMessage(new HumanMessage(executionContext + '\n'+ plannerOutputForExecutor));

const browserStateMessage = await this._getBrowserStateMessage(
/* includeScreenshot */ this.executionContext.supportsVision() && this.executionContext.isLimitedContextMode(),
/* includeScreenshot */ this.executionContext.supportsVision() && !this.executionContext.isLimitedContextMode(),
/* simplified */ true,
/* screenshotSize */ "medium",
/* includeBrowserState */ true,
Expand Down Expand Up @@ -1370,7 +1370,7 @@ Continue upon your previous steps what has been done so far and suggest next ste
`;
const userPromptTokens = TokenCounter.countMessage(new HumanMessage(userPrompt));
const browserStateMessage = await this._getBrowserStateMessage(
/* includeScreenshot */ this.executionContext.supportsVision() && this.executionContext.isLimitedContextMode(),
/* includeScreenshot */ this.executionContext.supportsVision() && !this.executionContext.isLimitedContextMode(),
/* simplified */ true,
/* screenshotSize */ "large",
/* includeBrowserState */ true,
Expand Down
Loading