[CI] Re-enable Prefix Cache Test (#2869)

Signed-off-by: Alex Brooks <albrooks@redhat.com>
This commit is contained in:
Alex Brooks authored and GitHub committed 2026-04-24 12:58:25 +08:00
1 parent 2e067bbc24
commit 9ebfbf9fde
3 files changed
+18 -8

No files matched your search

+4
View File
@@ -447,12 +447,16 @@ def generate_synthetic_image(
*,
force_regenerate: bool = False,
cache_dir: Path | str | None = None,
seed: int | None = None,
) -> dict[str, Any]:
"""
Random colored squares on white background. Caches JPEG by ``width`` /
``height`` unless ``force_regenerate`` is true. Cache root: ``cache_dir``
if given, else the default temp subdirectory.
"""
if seed is not None:
random.seed(seed)
root = _resolve_synthetic_media_cache_dir(cache_dir)
root.mkdir(parents=True, exist_ok=True)
cache_path = root / f"synth_image_w{width}_h{height}.jpg"
+3
View File
@@ -620,6 +620,9 @@ class OpenAIClientHandler:
mm = dict(extra_body.get("mm_processor_kwargs") or {})
mm["use_audio_in_video"] = True
extra_body["mm_processor_kwargs"] = mm
if "sampling_params_list" in request_config:
extra_body["sampling_params_list"] = request_config["sampling_params_list"]
create_kwargs: dict[str, Any] = {
"model": request_config.get("model"),
"messages": request_config.get("messages"),