File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 25
25
from .config import StagehandConfig , default_config
26
26
from .context import StagehandContext
27
27
from .llm import LLMClient
28
+ from .logging import StagehandLogger , default_log_handler
28
29
from .metrics import StagehandFunctionName , StagehandMetrics
29
30
from .page import StagehandPage
30
31
from .schemas import AgentConfig
31
- from .utils import (
32
- StagehandLogger ,
33
- default_log_handler ,
34
- make_serializable ,
35
- )
32
+ from .utils import make_serializable
36
33
37
34
load_dotenv ()
38
35
@@ -183,6 +180,7 @@ def __init__(
183
180
self .llm = None
184
181
if self .env == "LOCAL" :
185
182
self .llm = LLMClient (
183
+ stagehand_logger = self .logger ,
186
184
api_key = self .model_api_key ,
187
185
default_model = self .model_name ,
188
186
metrics_callback = self ._handle_llm_metrics ,
You can’t perform that action at this time.
0 commit comments