Skip to content

feat(model_registry): add DeepInfra google/gemma-4-31B-it-turbo and google/gemma-4-31B-it-Ultra - #36067

Closed
nickhac wants to merge 1 commit into
BerriAI:mainfrom
nickhac:fix/model_registry_staleness-191-model-deepinfra-google-gemma-4
Closed

nickhac wants to merge 1 commit into
BerriAI:mainfrom
nickhac:fix/model_registry_staleness-191-model-deepinfra-google-gemma-4

Conversation

@nickhac

@nickhac nickhac commented Aug 6, 2026

Copy link
Copy Markdown

TLDR

Gap: Add two missing Google Gemma 4 models on DeepInfra to litellm pricing registry

Wedge type: model_registry_staleness

Source: https://api.deepinfra.com/v1/openai/models

Changes

  • model_prices_and_context_window.json

Diff size: 26 lines across 1 file

What models are added

Model Context Input Output Cache Vision Prompt Cache
deepinfra/google/gemma-4-31B-it-turbo 262K $0.09/M $0.34/M $0.05/M ✅ ✅
deepinfra/google/gemma-4-31B-it-Ultra 131K $0.27/M $0.76/M — ✅ —

Both models are listed in the DeepInfra API (GET https://api.deepinfra.com/v1/openai/models) but were missing from model_prices_and_context_window.json, causing litellm.completion("deepinfra/google/gemma-4-31B-it-turbo", ...) to fail with a model not found error.

Pre-submission checklist

  • Minimal change — touches 1 file
  • JSON validated (2990 keys, all intact)
  • No CI/CD, Dockerfile, or lock file modifications
  • Pricing sourced directly from DeepInfra public API

AI Assistance Disclosure

This contribution was AI-assisted using Hermes Agent (Nous Research).

Co-authored-by: Hermes Agent hermes-agent@nousresearch.com

…31B-it-Ultra

Add two missing Google Gemma 4 models available on DeepInfra to
model_prices_and_context_window.json:

- deepinfra/google/gemma-4-31B-it-turbo
  - 262K context window, vision support, prompt caching
  - Input: $0.09/M tokens, Output: $0.34/M tokens, Cache: $0.05/M tokens

- deepinfra/google/gemma-4-31B-it-Ultra
  - 131K context window, vision support
  - Input: $0.27/M tokens, Output: $0.76/M tokens

Pricing sourced from https://api.deepinfra.com/v1/openai/models

Co-authored-by: Hermes Agent <hermes-agent@nousresearch.com>
@greptile-apps

greptile-apps Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Adds pricing, context-window, and capability metadata for two DeepInfra Gemma 4 models so LiteLLM can discover them and calculate request costs

  • Registers the Turbo model with 262K context, cache-read pricing, vision, tools, and prompt-caching metadata
  • Registers the Ultra model with 131K context, vision, and tool metadata

Confidence Score: 5/5

The PR appears safe to merge because the new registry entries are structurally consistent and no concrete failure was identified

The change only adds model metadata consumed by existing lookup and cost-calculation paths, with no established incorrect rate, limit, capability, or identifier behavior

Important Files Changed

Filename Overview
model_prices_and_context_window.json Adds two well-formed DeepInfra model registry entries with pricing, token limits, provider metadata, and supported capabilities; no actionable defect was established

Reviews (1): Last reviewed commit: "feat(model_registry): add DeepInfra gemm..." | Re-trigger Greptile

@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Superseded by rolling registry audit #37902, which reverified and absorbed the provider-documented metadata changes at field level

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant