Skip to content

Add gemini-3.1-pro-preview model to reasoning models #2269#2270

Merged
enyst merged 2 commits intoOpenHands:mainfrom
mayeco:patch-1
Mar 3, 2026
Merged

Add gemini-3.1-pro-preview model to reasoning models #2269#2270
enyst merged 2 commits intoOpenHands:mainfrom
mayeco:patch-1

Conversation

@mayeco
Copy link
Copy Markdown
Contributor

@mayeco mayeco commented Mar 3, 2026

Summary

This PR adds support for the new gemini-3.1-pro-preview model by including it in the reasoning models list.

Changes

  • Added "gemini-3.1-pro-preview" to the reasoning models registry.
  • Added a test case in tests/sdk/llm/test_model_features.py to ensure the new model string is correctly matched.

#2269

Checklist

  • If the PR is changing/adding functionality, are there tests to reflect this?
  • If there is an example, have you run the example to make sure that it works?
  • If there are instructions on how to run the code, have you followed the instructions and made sure that it works?
  • If the feature is significant enough to require documentation, is there a PR open on the OpenHands/docs repository with the same branch name?
  • Is the github CI passing?

Add gemini-3.1-pro-preview model to reasoning models OpenHands#2269
Copilot AI review requested due to automatic review settings March 3, 2026 03:52
@mayeco mayeco changed the title Update model_features.py Add gemini-3.1-pro-preview model to reasoning models #2269 Mar 3, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the gemini-3.1-pro-preview identifier to the SDK’s “reasoning effort supported” model list so feature detection treats Gemini 3.1 Pro Preview as a reasoning-capable model (per #2269).

Changes:

  • Add gemini-3.1-pro-preview to REASONING_EFFORT_MODELS.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Add test to model features
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mayeco
Copy link
Copy Markdown
Contributor Author

mayeco commented Mar 3, 2026

@aivong-openhands ping

@mayeco
Copy link
Copy Markdown
Contributor Author

mayeco commented Mar 3, 2026

@neubig ping

@mayeco
Copy link
Copy Markdown
Contributor Author

mayeco commented Mar 3, 2026

@openhands-agent

Copy link
Copy Markdown
Collaborator

@enyst enyst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix!

@enyst enyst merged commit 0989fb2 into OpenHands:main Mar 3, 2026
23 of 27 checks passed
zparnold added a commit to zparnold/software-agent-sdk that referenced this pull request Mar 5, 2026
@mayeco mayeco deleted the patch-1 branch March 10, 2026 03:11
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.

3 participants