From 705f8a32351246c1a0bdde0bc01167b5dc0d69d8 Mon Sep 17 00:00:00 2001 From: phact Date: Mon, 13 Oct 2025 12:53:33 -0400 Subject: [PATCH] post --- tests/integration/test_api_endpoints.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/integration/test_api_endpoints.py b/tests/integration/test_api_endpoints.py index 073df6aa..3aa9c996 100644 --- a/tests/integration/test_api_endpoints.py +++ b/tests/integration/test_api_endpoints.py @@ -390,10 +390,16 @@ async def test_search_multi_embedding_models( async with httpx.AsyncClient(transport=transport, base_url="http://testserver") as client: await wait_for_service_ready(client) - mark_resp = await client.patch("/settings", json={"edited": True}) - if mark_resp.status_code not in (200, 204): + warmup_resp = await client.post( + "/settings", + json={ + "embedding_model": "text-embedding-3-small", + "llm_model": "gpt-4o-mini", + }, + ) + if warmup_resp.status_code not in (200, 204): raise AssertionError( - f"Failed to mark config edited: {mark_resp.status_code} {mark_resp.text}" + f"Initial settings update failed: {warmup_resp.status_code} {warmup_resp.text}" ) async def _upload_doc(name: str, text: str) -> None: