mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-13 08:52:02 +00:00
Merge pull request #50795 from BerriAI/litellm_rc109_drop_gemini_empty_n
test(integration): drop the empty-string n case from the Gemini long decode test
This commit is contained in:
commit
d55668e253
1 changed files with 0 additions and 3 deletions
|
|
@ -1211,7 +1211,6 @@ def test_request_with_no_output_cap_is_never_continued_and_returns_googles_cut_w
|
|||
_NOT_A_NUMBER: Final[tuple[tuple[str, Mapping[str, JsonValue], int | None], ...]] = (
|
||||
("n-string", {"n": "1"}, CAP),
|
||||
("n-list", {"n": [1]}, CAP),
|
||||
("n-empty", {"n": ""}, CAP),
|
||||
("n-5kb", {"n": "1" * 5120}, CAP),
|
||||
("max_tokens-string", {"max_tokens": "300"}, None),
|
||||
("max_tokens-list", {"max_tokens": [300]}, None),
|
||||
|
|
@ -1234,8 +1233,6 @@ def _halves() -> Respond:
|
|||
def test_count_or_cap_that_is_not_a_number_makes_one_request_and_is_never_continued(
|
||||
gateway: Gateway, extra: Mapping[str, JsonValue], cap: int | None, stream: bool
|
||||
) -> None:
|
||||
if extra.get("n") == "":
|
||||
pytest.skip('BUG: empty-string n can trigger continuation, deferred on rc/1.109.0 only')
|
||||
with wire_server(_halves()) as wire, gateway.scenario() as scenario:
|
||||
model: Final = register(gateway, scenario, "gemini", wire)
|
||||
body: Final = request_body("chat", model, stream, {**NO_CACHE, **extra}, cap=cap)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue