tests: migrate LLM tests to Settings-based constructor API

Replace the old `model=` / `params=InputParams(...)` style with the
new `settings=<Service>.Settings(...)` form across LLM service tests.
This commit is contained in:
Aleix Conchillo Flaqué
2026-04-10 17:37:49 -07:00
parent 153814ecc2
commit e553bb010f
4 changed files with 68 additions and 29 deletions

View File

@@ -23,7 +23,9 @@ async def test_sambanova_llm_stream_closed_on_cancellation():
See issue #3639.
"""
with patch.object(SambaNovaLLMService, "create_client"):
service = SambaNovaLLMService(api_key="test-key", model="test-model")
service = SambaNovaLLMService(
api_key="test-key", settings=SambaNovaLLMService.Settings(model="test-model")
)
service._client = AsyncMock()
stream_closed = False