Repository navigation
feat: DeepInfra as a cross-model reviewer (4.7.0) - #459
Merged
Merged
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



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.
deepinfraadapter 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 isDEEPINFRA_API_KEYorreview.key_file.review.reviewersacceptsdeepinfra, withreview.providers.deepinfra.tiers.{flagship,balanced,cheap},nulluntil set, and/cad-config --reviewsets it up.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.nullor non-object entry in any provider's model list used to faildetect-modelsoutright. 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-verifyand the typecheck are clean.detect-models --provider deepinfraagainst the live API listed 153 models with a real key. The range matched theauthrisk 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.