From f8744628462097dd3e82012f2cb65d998ead36fe Mon Sep 17 00:00:00 2001 From: Ryze0323 Date: Thu, 26 Mar 2026 16:05:23 +0900 Subject: [PATCH] fix(model): add supports_reasoning for gemini-3.1-flash-image-preview The gemini-3.1-flash-image-preview model supports thinking/reasoning via thinkingLevel parameter, but was missing the supports_reasoning flag in model_prices_and_context_window.json. Added supports_reasoning: true to the base gemini-3.1-flash-image-preview entry. The gemini/ and vertex_ai/ prefixed entries inherit this via _supports_factory fallback logic. Co-Authored-By: Claude Opus 4.6 (1M context) --- litellm/model_prices_and_context_window_backup.json | 1 + model_prices_and_context_window.json | 1 + 2 files changed, 2 insertions(+) diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json index 8351f084f28..e18719d2a3c 100644 --- a/litellm/model_prices_and_context_window_backup.json +++ b/litellm/model_prices_and_context_window_backup.json @@ -13807,6 +13807,7 @@ ], "supports_function_calling": false, "supports_prompt_caching": true, + "supports_reasoning": true, "supports_response_schema": true, "supports_system_messages": true, "supports_vision": true, diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json index 6da9a004b8a..7fdf55d08f9 100644 --- a/model_prices_and_context_window.json +++ b/model_prices_and_context_window.json @@ -13807,6 +13807,7 @@ ], "supports_function_calling": false, "supports_prompt_caching": true, + "supports_reasoning": true, "supports_response_schema": true, "supports_system_messages": true, "supports_vision": true,