From 2911d99d77ed9da61023489340d87eed403cece4 Mon Sep 17 00:00:00 2001 From: user <70670632+stuxf@users.noreply.github.com> Date: Wed, 15 Apr 2026 00:28:39 +0000 Subject: [PATCH] test(gemini): stub API key for format param tests --- tests/test_litellm/test_main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_litellm/test_main.py b/tests/test_litellm/test_main.py index 40a3692ac6..f538bc4e2f 100644 --- a/tests/test_litellm/test_main.py +++ b/tests/test_litellm/test_main.py @@ -213,6 +213,8 @@ async def test_url_with_format_param(model, sync_mode, monkeypatch): } ], } + if model.startswith("gemini/"): + args["api_key"] = "test-api-key" with patch.object(client, "post", new=MagicMock()) as mock_client: try: if sync_mode: