Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
veasion committed Dec 21, 2024
1 parent 65f593d commit 7146783
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"watch": "webpack --config webpack/webpack.dev.js --watch",
"build": "webpack --config webpack/webpack.prod.js",
"build:dev": "webpack --config webpack/webpack.dev.js",
"clean": "rimraf dist",
"test": "npx jest",
"style": "prettier --write \"src/**/*.{ts,tsx}\""
Expand Down
4 changes: 2 additions & 2 deletions src/background/test_llm_computer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ export async function testWebSearchWithComputer() {
new tools.ExtractContent() as ToolDefinition,
],
};
let toolMap: { [key: string]: Tool } = {};
let toolMap: { [key: string]: Tool<any, any> } = {};
for (let i = 0; i < params.tools.length; i++) {
let tool = params.tools[i];
toolMap[tool.name] = tool as Tool;
toolMap[tool.name] = tool as Tool<any, any>;
}
do {
printLog(messages[messages.length - 1]);
Expand Down
4 changes: 2 additions & 2 deletions src/background/test_llm_search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ export async function testWebSearchWithLLM() {
new tools.ExportFile() as ToolDefinition,
],
};
let toolMap: { [key: string]: Tool } = {};
let toolMap: { [key: string]: Tool<any, any> } = {};
for (let i = 0; i < params.tools.length; i++) {
let tool = params.tools[i];
toolMap[tool.name] = tool as Tool;
toolMap[tool.name] = tool as Tool<any, any>;
}
do {
printLog(messages[messages.length - 1]);
Expand Down

0 comments on commit 7146783

Please sign in to comment.