mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-17 23:51:30 +00:00
revert(model_info): keep Gemini baseline majors single-digit
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
945adfb603
commit
c9dd4b44f8
3 changed files with 2 additions and 4 deletions
|
|
@ -58152,7 +58152,7 @@
|
|||
},
|
||||
{
|
||||
"name": "gemini-chat-baseline",
|
||||
"pattern": "gemini-(?!.*(?:-tts|-image|-live|-audio|-embedding|-computer-use|-robotics|-transcribe|-translate))(?:2[.-][5-9]|(?:[3-9]|[1-9]\\d)(?:[.-]\\d{1,2})?)-(?:pro|flash)(?:-lite)?(?![a-z])",
|
||||
"pattern": "gemini-(?!.*(?:-tts|-image|-live|-audio|-embedding|-computer-use|-robotics|-transcribe|-translate))(?:2[.-][5-9]|[3-9](?:[.-]\\d{1,2})?)-(?:pro|flash)(?:-lite)?(?![a-z])",
|
||||
"description": "Any Gemini text-chat id at 2.5 or higher under any namespace, including bare ids, gemini/, vertex_ai/, openrouter/google/, deepinfra/google/, vercel_ai_gateway/google/, oci/google., and databricks-gemini-<major>-<minor>: gemini-<major>[.minor]-(pro|flash)[-lite] with any trailing preview, date or variant tag. The capability flags were verified against each of those providers' own catalogs and docs. The lookahead excludes the tts, image, live, audio, embedding, computer-use, robotics, transcribe and translate lines, which are different modes with different capabilities. Provider-specific deviations, such as Perplexity's Agent API serving these as mode responses, are carried by their exact map entries, which always win over this rule. Carries no token limits or pricing, so those stay on the standard unmapped behavior rather than a guessed number. Source check 2026-09-15: all 45 first-party 2.5+ text-chat entries in this map carry every field below, and the OpenRouter (openrouter.ai/api/v1/models), Vercel AI Gateway (ai-gateway.vercel.sh/v1/models), DeepInfra (api.deepinfra.com/models/list), OCI and Databricks model docs list reasoning, tools and image input for the same models.",
|
||||
"model_info": {
|
||||
"mode": "chat",
|
||||
|
|
|
|||
|
|
@ -58152,7 +58152,7 @@
|
|||
},
|
||||
{
|
||||
"name": "gemini-chat-baseline",
|
||||
"pattern": "gemini-(?!.*(?:-tts|-image|-live|-audio|-embedding|-computer-use|-robotics|-transcribe|-translate))(?:2[.-][5-9]|(?:[3-9]|[1-9]\\d)(?:[.-]\\d{1,2})?)-(?:pro|flash)(?:-lite)?(?![a-z])",
|
||||
"pattern": "gemini-(?!.*(?:-tts|-image|-live|-audio|-embedding|-computer-use|-robotics|-transcribe|-translate))(?:2[.-][5-9]|[3-9](?:[.-]\\d{1,2})?)-(?:pro|flash)(?:-lite)?(?![a-z])",
|
||||
"description": "Any Gemini text-chat id at 2.5 or higher under any namespace, including bare ids, gemini/, vertex_ai/, openrouter/google/, deepinfra/google/, vercel_ai_gateway/google/, oci/google., and databricks-gemini-<major>-<minor>: gemini-<major>[.minor]-(pro|flash)[-lite] with any trailing preview, date or variant tag. The capability flags were verified against each of those providers' own catalogs and docs. The lookahead excludes the tts, image, live, audio, embedding, computer-use, robotics, transcribe and translate lines, which are different modes with different capabilities. Provider-specific deviations, such as Perplexity's Agent API serving these as mode responses, are carried by their exact map entries, which always win over this rule. Carries no token limits or pricing, so those stay on the standard unmapped behavior rather than a guessed number. Source check 2026-09-15: all 45 first-party 2.5+ text-chat entries in this map carry every field below, and the OpenRouter (openrouter.ai/api/v1/models), Vercel AI Gateway (ai-gateway.vercel.sh/v1/models), DeepInfra (api.deepinfra.com/models/list), OCI and Databricks model docs list reasoning, tools and image input for the same models.",
|
||||
"model_info": {
|
||||
"mode": "chat",
|
||||
|
|
|
|||
|
|
@ -458,12 +458,10 @@ def shipped_cost_map(monkeypatch):
|
|||
("vertex_ai/gemini-4-pro", None),
|
||||
("gemini-4-pro-preview-customtools", "gemini"),
|
||||
("google/gemini-4-pro", "openrouter"),
|
||||
("google/gemini-12.5-flash-lite", "openrouter"),
|
||||
("google/gemini-4-pro", "deepinfra"),
|
||||
("google/gemini-4-pro", "vercel_ai_gateway"),
|
||||
("google.gemini-4-pro", "oci"),
|
||||
("databricks-gemini-4-1-pro", "databricks"),
|
||||
("gemini-10-pro", "gemini"),
|
||||
],
|
||||
)
|
||||
def test_shipped_gemini_chat_baseline_resolves_unmapped_ids(shipped_cost_map, model, provider):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue