fix(models): add fallback Gemini 3.1 Pro Preview catalog entry#22337
Closed
AIflow-Labs wants to merge 1 commit intoopenclaw:mainfrom
Closed
fix(models): add fallback Gemini 3.1 Pro Preview catalog entry#22337AIflow-Labs wants to merge 1 commit intoopenclaw:mainfrom
AIflow-Labs wants to merge 1 commit intoopenclaw:mainfrom
Conversation
Member
|
you have been detected be spamming with unwarranted prs and issues and your issues and prs have been automatically closed. please read contributing guide Contributing.md. |
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.
What changed
src/agents/model-catalog.tswhen it is missing from discovered models.src/agents/model-catalog.test.tscovering:Why this fixes the issue
Issue 22323 is caused by discovery missing the new Gemini 3.1 Pro Preview model, which can hide it from built-in provider selection. This fallback guarantees the catalog always contains that model and does not alter discovery semantics when a matching entry already exists.
Tests run
pnpm vitest run --config vitest.unit.config.ts src/agents/model-catalog.test.tspnpm test -- src/agents/model-catalog.test.tsEdge cases
Infra flake / blockers
Greptile Summary
Adds fallback catalog entry for
google/gemini-3.1-pro-previewmodel when it's missing from SDK discovery, following the same pattern as the existing OpenAI Codex Spark fallback.Key changes:
applyGoogle31ProPreviewFallback()function with deduplication checkreasoning: true, 1M context window, and text+image input supporttoContainEqualinstead of strict equality for better flexibilityConfidence Score: 5/5
Last reviewed commit: c903811