feat: add gemini-3.1-pro-preview support#21543
feat: add gemini-3.1-pro-preview support#21543Imccccc wants to merge 6 commits intoopenclaw:mainfrom
Conversation
|
Confirmed working workaround on macOS with
Result from local validation:
I documented reproducible steps here: If useful, maintainers can either merge the provider catalog update or keep this as temporary workaround in docs. |
|
Follow-up: please also watch the adaptation details, not only adding one model id. From real integration testing, these are the common breakpoints:
This helps prevent the “looks added in config but still fails in runtime” class of bugs. |
|
Hey there! Thanks for adding support for Gemini 3.1. Would it be possible to also add the According to the official Google documentation, this specific variant is explicitly optimized for agentic workflows that rely on bash and custom tools, which makes it particularly relevant for OpenClaw's architecture. It would be amazing to have native support for this endpoint out of the box! Thanks for your hard work on this. |
|
+1 for this! 🎉 Just encountered this issue today - OpenClaw currently blocks Looking forward to this being merged so we can use the newly released Gemini 3.1 Pro. Thanks for the quick PR! |
This update addresses feedback from PR openclaw#21543: - Adds 'gemini-3.1-pro-preview' and 'gemini-3.1-pro-preview-customtools' to OpenCode Zen model catalog (aliases, costs, capabilities). - Adds normalization for 'gemini-3.1-pro-customtools' -> 'gemini-3.1-pro-preview-customtools'. - Updates tests to cover new models and aliases.
edc6422 to
790051b
Compare
da2c360 to
be108c8
Compare
eb4090b to
3e940a8
Compare
7067e17 to
d3ca3e6
Compare
d3ca3e6 to
d81cfa2
Compare
Includes: - Defaults alias 'gemini-3.1' -> 'gemini-3.1-pro-preview' - Normalization for 'gemini-3.1-pro' variants (including customtools) - OpenCode Zen catalog definitions - Model catalog fallback injection for preview models
d81cfa2 to
7d637c8
Compare
|
|
|
Hi @Skeptomenos, thanks for the suggestion! The |
|
Is this a duplicate of #21257 ? |
i believe it is |
|
Closing this PR as Release 2026.2.21 already includes Gemini 3.1 Pro support. |
Adds explicit catalog fallback and alias for gemini-3.1-pro-preview to unblock usage before upstream pi-ai update.
Greptile Summary
Adds explicit catalog fallback and alias for
gemini-3.1-pro-previewmodel to enable usage before upstream pi-ai update. The implementation follows existing patterns:applyGemini31PreviewFallbackfunction to inject model entry if not present in catalog"gemini-3.1"alias mapping to"google/gemini-3.1-pro-preview"in defaultsConfidence Score: 5/5
applyOpenAICodexSparkFallback), adds a simple alias mapping consistent with existing Gemini aliases, and introduces no breaking changes. The fallback function safely checks for model existence before adding it, preventing duplicates.Last reviewed commit: 7c05c1f