Skip to content

Commit 79571f5

Browse files
authored
udpate browser use example (#46)
1 parent 0726fd4 commit 79571f5

File tree

3 files changed

+562
-855
lines changed

3 files changed

+562
-855
lines changed

templates/python/browser-use/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from langchain_openai import ChatOpenAI
1+
from browser_use.llm import ChatOpenAI
22
from browser_use import Agent
33
import kernel
44
from kernel import Kernel
@@ -14,7 +14,7 @@ class TaskInput(TypedDict):
1414

1515
# LLM API Keys are set in the environment during `kernel deploy <filename> -e OPENAI_API_KEY=XXX`
1616
# See https://docs.onkernel.com/launch/deploy#environment-variables
17-
llm = ChatOpenAI(model="gpt-4o-mini")
17+
llm = ChatOpenAI(model="gpt-4.1")
1818

1919
@app.action("bu-task")
2020
async def bu_task(ctx: kernel.KernelContext, input_data: TaskInput):

templates/python/browser-use/pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ description = "Kernel sample app for Browser Use"
55
readme = "README.md"
66
requires-python = ">=3.11"
77
dependencies = [
8-
"browser-use~=0.2.4",
9-
"kernel>=0.6.0",
10-
"langchain-openai>=0.3.11",
8+
"browser-use~=0.5.3",
9+
"kernel>=0.7.1",
1110
"pydantic>=2.10.6",
1211
]

0 commit comments

Comments
 (0)