Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
veasion committed Jan 1, 2025
1 parent 76bfc8b commit 1dd0252
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eko-chromium-extension",
"name": "eko-browser-extension",
"version": "1.0.0",
"description": "eko chromium extension",
"description": "eko browser extension",
"main": "index.js",
"scripts": {
"watch": "webpack --config webpack/webpack.dev.js --watch",
Expand All @@ -15,7 +15,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/fellouAI/eko-chromium-extension.git"
"url": "https://github.com/fellouAI/eko-browser-extension.git"
},
"dependencies": {
"antd": "^5.22.4",
Expand Down
2 changes: 1 addition & 1 deletion src/background/test_llm_computer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function testWebSearchWithComputer() {
let messages: Message[] = [
{
role: "user",
content: "搜索谢扬信息,汇总成表格导出",
content: "Search Elon Musk information and summarize it into markdown format for export",
},
];
let params: LLMParameters = {
Expand Down
2 changes: 1 addition & 1 deletion src/background/test_llm_search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function testWebSearchWithLLM() {
let messages: Message[] = [
{
role: "user",
content: "搜索谢扬信息,汇总成表格导出",
content: "Search Elon Musk information and summarize it into markdown format for export",
},
];
let params: LLMParameters = {
Expand Down
2 changes: 1 addition & 1 deletion src/background/test_llm_workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function testWebSearchWithWorkflow() {
eko.registerTool(new tools.WebSearch());
eko.registerTool(new tools.ExportFile());

const workflow = await eko.generateWorkflow("搜索谢扬信息,汇总成表格导出");
const workflow = await eko.generateWorkflow("Search Elon Musk information and summarize it into markdown format for export");
console.log("dsl", WorkflowParser.serialize(workflow));
await eko.execute(workflow);
}
10 changes: 5 additions & 5 deletions src/background/test_tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var context: ExecutionContext;

async function testWebSearch() {
let webSearch = new tools.WebSearch();
let result = await webSearch.execute(context, { query: "谢扬" });
let result = await webSearch.execute(context, { query: "Elon Musk" });
console.log("result: ", result);
return result;
}
Expand Down Expand Up @@ -100,7 +100,7 @@ async function computer() {
inputIdx = str.split(":")[0].replace("[", "").replace("]", "");
}
}
await computerWeb("input_text", +inputIdx, "谢扬");
await computerWeb("input_text", +inputIdx, "Elon Musk");
result = await computerWeb("screenshot_extract_element");
elements = result.text.split("\n");
let butIdx;
Expand All @@ -116,13 +116,13 @@ async function computer() {
async function test_task_prompt() {
// open new tab
await openUrl("https://www.baidu.com", true);
let rect = await findElementPosition("查找搜索输入框");
let rect = await findElementPosition("Find the search input box");
if (rect) {
// input -> text
await type(rect, "谢扬");
await type(rect, "Elon Musk");
await utils.sleep(500);
// click the search button
await elementClick("点击搜索按钮");
await elementClick("click the search button");
}
}

Expand Down

0 comments on commit 1dd0252

Please sign in to comment.