File tree Expand file tree Collapse file tree 3 files changed +562
-855
lines changed
templates/python/browser-use Expand file tree Collapse file tree 3 files changed +562
-855
lines changed Original file line number Diff line number Diff line change 1- from langchain_openai import ChatOpenAI
1+ from browser_use . llm import ChatOpenAI
22from browser_use import Agent
33import kernel
44from 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" )
2020async def bu_task (ctx : kernel .KernelContext , input_data : TaskInput ):
Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ description = "Kernel sample app for Browser Use"
55readme = " README.md"
66requires-python = " >=3.11"
77dependencies = [
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]
You can’t perform that action at this time.
0 commit comments