Skip to content

Commit 142ca36

Browse files
committed
test: fix LLM config to use provider string instead of object
1 parent 65da299 commit 142ca36

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def mock_llm_config():
3131
'openhands': {
3232
'model': 'mock-gpt-4',
3333
'api_key': 'test-key',
34-
'llm_provider': MockLLMProvider(),
34+
'provider': 'mock', # Add provider type
3535
},
3636
'monitor': {
3737
'quality_threshold': 0.8,

tests/test_orchestrator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def config(self):
8585
'openhands': {
8686
'model': 'mock-gpt-4',
8787
'api_key': 'test-key',
88-
'llm_provider': MockLLMProvider(),
88+
'provider': 'mock',
8989
},
9090
'monitor': {'quality_threshold': 0.8},
9191
'governance': {'enable_gatekeeping': True}
@@ -106,7 +106,7 @@ def test_init_with_custom_config(self):
106106
'openhands': {
107107
'model': 'mock-claude-3',
108108
'api_key': 'test-key',
109-
'llm_provider': MockLLMProvider(),
109+
'provider': 'mock',
110110
},
111111
'monitor': {'quality_threshold': 0.9},
112112
'governance': {'enable_gatekeeping': False},
@@ -165,7 +165,7 @@ def orchestrator(self):
165165
'openhands': {
166166
'model': 'mock-gpt-4',
167167
'api_key': 'test-key',
168-
'llm_provider': MockLLMProvider(),
168+
'provider': 'mock',
169169
},
170170
'monitor': {'quality_threshold': 0.8},
171171
}
@@ -206,7 +206,7 @@ def orchestrator(self):
206206
'openhands': {
207207
'model': 'mock-gpt-4',
208208
'api_key': 'test-key',
209-
'llm_provider': MockLLMProvider(),
209+
'provider': 'mock',
210210
},
211211
'monitor': {'quality_threshold': 0.8},
212212
}

0 commit comments

Comments
 (0)