From 5013e0da46935281aff9b0847b685043d64b3502 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Fri, 30 Oct 2026 10:14:12 -0700 Subject: [PATCH] test(e2e): send Vertex's header-only betas in the beta acceptance case --- tests/e2e/llm_translation/test_messages_beta_headers_e2e.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/e2e/llm_translation/test_messages_beta_headers_e2e.py b/tests/e2e/llm_translation/test_messages_beta_headers_e2e.py index fa6a7b87d09..67f0d1aa54e 100644 --- a/tests/e2e/llm_translation/test_messages_beta_headers_e2e.py +++ b/tests/e2e/llm_translation/test_messages_beta_headers_e2e.py @@ -25,8 +25,10 @@ _CODE_EXECUTION: Final[ToolUnionParam] = {"type": "code_execution_20250825", "na def _mapped_beta_headers(provider: str) -> str: - mapping: Final = _BETA_MAPPING.validate_python(_BETA_CONFIG_FILE.validate_json(_BETA_CONFIG.read_text())[provider]) - return ",".join(name for name, value in mapping.items() if value is not None) + config: Final = _BETA_CONFIG_FILE.validate_json(_BETA_CONFIG.read_text()) + mapping: Final = _BETA_MAPPING.validate_python(config[provider]) + header_only: Final = _BETA_MAPPING.validate_python(config.get(f"{provider}_header_only", {})) + return ",".join(name for name, value in {**mapping, **header_only}.items() if value is not None) def _deployment(backend: str) -> LiteLLMParamsBody: