66
77from stagehand .llm .client import LLMClient
88from tests .mocks .mock_llm import MockLLMClient , MockLLMResponse
9+ from stagehand .logging import StagehandLogger
910
1011
1112class TestLLMClientInitialization :
@@ -15,7 +16,8 @@ def test_llm_client_creation_with_openai(self):
1516 """Test LLM client creation with OpenAI provider"""
1617 client = LLMClient (
1718 api_key = "test-openai-key" ,
18- default_model = "gpt-4o"
19+ default_model = "gpt-4o" ,
20+ stagehand_logger = StagehandLogger (),
1921 )
2022
2123 assert client .default_model == "gpt-4o"
@@ -25,7 +27,8 @@ def test_llm_client_creation_with_anthropic(self):
2527 """Test LLM client creation with Anthropic provider"""
2628 client = LLMClient (
2729 api_key = "test-anthropic-key" ,
28- default_model = "claude-3-sonnet"
30+ default_model = "claude-3-sonnet" ,
31+ stagehand_logger = StagehandLogger (),
2932 )
3033
3134 assert client .default_model == "claude-3-sonnet"
@@ -35,7 +38,8 @@ def test_llm_client_with_custom_options(self):
3538 """Test LLM client with custom configuration options"""
3639 client = LLMClient (
3740 api_key = "test-key" ,
38- default_model = "gpt-4o-mini"
41+ default_model = "gpt-4o-mini" ,
42+ stagehand_logger = StagehandLogger (),
3943 )
4044
4145 assert client .default_model == "gpt-4o-mini"
0 commit comments