Any reason `o4-mini` isn't available as a model in...
# feedback
h
Any reason
o4-mini
isn't available as a model in the OpenHands CLI?
c
@nutritious-balloon-65098 We should add
o4-mini
as a model in OpenHands CLI. Can you look around and see where do we maintain the list of models for OpenHands CLI, and add o4-mini to it? Also, i think we can allow user to select "Anthropic, OpenAI, and Mistral" as model providers. Default model (models we've verified that have good experience) for each provider should be
claude-sonnet-4-20250514
,
o4-mini
,
devstral-small-2505.
n
I'm on it! Xingyao Wang can track my progress here.
Successfully Added o4-mini and Mistral Support to OpenHands CLI I have successfully implemented your request to add
o4-mini
as a model and enable Mistral as a provider in the OpenHands CLI. Here's what was accomplished: 🎯 Key Changes Made: 1. Added
o4-mini
as the default OpenAI model
◦ Added to
VERIFIED_OPENAI_MODELS
list as the first item ◦ Now appears as the default when users select OpenAI as their provider 2. Added Mistral as a new provider ◦ Added
mistral
to
VERIFIED_PROVIDERS
list ◦ Created
VERIFIED_MISTRAL_MODELS
with
devstral-small-2505
as the default ◦ Updated model extraction and organization logic to handle Mistral models 3. Set correct default models for each provider:OpenAI:
o4-mini
Anthropic:
claude-sonnet-4-20250514
Mistral:
devstral-small-2505
🔧 Technical Implementation: • Updated
openhands/cli/utils.py
with new model lists and extraction logic • Enhanced
openhands/cli/settings.py
to organize and prioritize Mistral models • Added comprehensive tests in
tests/unit/test_cli_utils.py
• All existing tests continue to pass 📋 Verification: All tests pass (33/33) • Pre-commit hooks pass • Code follows existing patterns and conventions • Manual verification confirms correct model defaults 🚀 Pull Request Created: I've created a draft pull request with all the changes: https://github.com/All-Hands-AI/OpenHands/pull/9217 Users can now select from OpenAI, Anthropic, and Mistral providers in the CLI, with the specified default models automatically selected for the best user experience.
🙌 1
r
@chilly-france-44439 should Azure be added to that list of providers?
c
I remember the configuration for Azure is a little complex so probably no? Would refer people to use "Advanced" setting if they want to setup azure?
r
Yeah, it does need to know the endpoint URL. Fair enough.
h
> Also, i think we can allow user to select "Anthropic, OpenAI, and Mistral" as model providers. Default model (models we've verified that have good experience) for each provider should be
claude-sonnet-4-20250514
,
o4-mini
,
devstral-small-2505.
Xingyao FYI, this is what I'm seeing:
c
This PR should be ready now https://github.com/All-Hands-AI/OpenHands/pull/9217 Here's how it looks after the fix:
🙌 1
You can try it by installing from the branch
uvx --python 3.12 --from git+<https://github.com/All-Hands-AI/OpenHands@add-o4-mini-mistral-support> openhands
🙌 1