test(responses): bump deprecated gemini-3-pro-preview to gemini-3.1-pro-preview (#29433)

Google sunset gemini-3-pro-preview on the Gemini API, so the AI Studio
responses-API thought-signature tests started failing with a 404
("This model models/gemini-3-pro-preview is no longer available").
Point both tests at the current gemini-3.1-pro-preview model, which
litellm already has registered and which supports the function calling,
reasoning, and native streaming these tests exercise.
This commit is contained in:
Mateo Wang 2026-06-01 09:54:30 -07:00 committed by GitHub
parent 28c0d8579b
commit 76bf280d0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,7 +97,7 @@ async def test_gemini_3_responses_api_with_thought_signatures():
pytest.skip("GEMINI_API_KEY not set")
litellm.set_verbose = False
request_model = "gemini/gemini-3-pro-preview"
request_model = "gemini/gemini-3.1-pro-preview"
tools = [
{
@ -197,7 +197,7 @@ async def test_gemini_3_responses_api_streaming_with_thought_signatures():
pytest.skip("GEMINI_API_KEY not set")
litellm.set_verbose = False
request_model = "gemini/gemini-3-pro-preview"
request_model = "gemini/gemini-3.1-pro-preview"
tools = [
{