Skip to content

Commit dc72b5d

Browse files
committed
fix big
1 parent b9080c3 commit dc72b5d

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/agent/custom_prompts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def important_rules(self) -> str:
5656
- Use scroll to find elements you are looking for
5757
5858
5. TASK COMPLETION:
59-
- If you think all the requirements of user\'s instruction have been completed and no further operation is required, output the done action to terminate the operation process.
59+
- If you think all the requirements of user\'s instruction have been completed and no further operation is required, output the **Done** action to terminate the operation process.
6060
- Don't hallucinate actions.
6161
- If the task requires specific information - make sure to include everything in the done function. This is what the user will see.
6262
- If you are running out of steps (current step), think about speeding it up, and ALWAYS use the done action as the last action.

src/controller/custom_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from pydantic import BaseModel
44
from browser_use.agent.views import ActionResult
55
from browser_use.browser.context import BrowserContext
6-
from browser_use.controller.service import Controller
6+
from browser_use.controller.service import Controller, DoneAction
77

88

99
class CustomController(Controller):

src/utils/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,15 @@ def get_llm_model(provider: str, **kwargs):
9999
model=kwargs.get("model_name", "deepseek-r1:7b"),
100100
temperature=kwargs.get("temperature", 0.0),
101101
num_ctx=kwargs.get("num_ctx", 32000),
102+
num_predict=kwargs.get("num_predict", 1024),
102103
base_url=kwargs.get("base_url", base_url),
103104
)
104105
else:
105106
return ChatOllama(
106107
model=kwargs.get("model_name", "qwen2.5:7b"),
107108
temperature=kwargs.get("temperature", 0.0),
108109
num_ctx=kwargs.get("num_ctx", 32000),
110+
num_predict=kwargs.get("num_predict", 1024),
109111
base_url=kwargs.get("base_url", base_url),
110112
)
111113
elif provider == "azure_openai":

0 commit comments

Comments
 (0)