Skip to content

feat: DeepInfra as a cross-model reviewer (4.7.0) - #459

Merged
crenshawdev merged 9 commits into
mainfrom
feat/deepinfra-provider
Dec 5, 2026
Merged

crenshawdev merged 9 commits into
mainfrom
feat/deepinfra-provider

Conversation

@crenshawdev

Copy link
Copy Markdown
Owner

Adds DeepInfra as a fourth cross-model reviewer beside openai, gemini and deepseek, so a review can go to an open-weights model like GLM-5.3 for a fraction of a flagship's price.

  • The deepinfra adapter sends Chat Completions to DeepInfra's OpenAI-compatible endpoint, with the schema in the system prompt and the return checked the way DeepSeek's is. The key is DEEPINFRA_API_KEY or review.key_file.
  • review.reviewers accepts deepinfra, with review.providers.deepinfra.tiers.{flagship,balanced,cheap}, null until set, and /cad-config --review sets it up.
  • DeepInfra's model ids are org/name, so the one model-id rule every provider passes now allows a single /. A leading, trailing or doubled /, a .. part and a third part are still refused.
  • One null or non-object entry in any provider's model list used to fail detect-models outright. Now that entry is skipped.

Verified with the suite at the new pin (5ce520a, on cadence-tests main through #33): 5392 pass, 0 fail. self-verify and the typecheck are clean. detect-models --provider deepinfra against the live API listed 153 models with a real key. The range matched the auth risk surface for the new key header, and its blocking review passed with no blocker or high. Its one medium is the model-list fix above.

The 5.0 line picks this up afterwards.

@sonarqubecloud

sonarqubecloud Bot commented Dec 5, 2026

Copy link
Copy Markdown

@crenshawdev
crenshawdev merged commit 66eeaf7 into main Dec 5, 2026
19 checks passed
@crenshawdev
crenshawdev deleted the feat/deepinfra-provider branch December 5, 2026 01:23
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