litellm/tests/e2e/perf/cases/responses_2rps.py
Kerry Lu a4637035ae
test(perf): give responses_2rps its own overhead p50 ceiling (#52459)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-18 13:43:57 +08:00

24 lines
648 B
Python

"""`/v1/responses` at 2 rps: `gpt-6-luna` is served by the OpenAI mock's Responses route,
`claude-sonnet-5` is bridged to the Anthropic mock's Messages route."""
from __future__ import annotations
from dataclasses import replace
from typing import Final
from .direct_vs_bridge import direct_vs_bridge
_BASE: Final = direct_vs_bridge(
"responses_2rps",
"responses",
direct="gpt-6-luna",
bridge="claude-sonnet-5",
)
CASE: Final = replace(
_BASE,
limits=tuple(
replace(limit, max=0.144) if limit.metric == "litellm_overhead_seconds" and limit.percentile == 50 else limit
for limit in _BASE.limits
),
)