Commit Graph

28 Commits

Author SHA1 Message Date
openhands
94c936b68e refactor: remove obsolete verified model fallback module
Co-authored-by: openhands <openhands@all-hands.dev>
2026-03-19 11:40:14 +00:00
openhands
8fc5fc3156 fix: clean verified models CI follow-ups
Handle bare and prefixed OpenAI model aliases in isCustomModel, fix frontend Prettier issues, and apply ruff formatting required by CI.

Co-authored-by: openhands <openhands@all-hands.dev>
2026-03-19 02:44:59 +00:00
openhands
1a055fa84d fix: add missing verifiedModels/verifiedProviders props in tests, run ruff format
- model-selector.test.tsx: pass verifiedModels and verifiedProviders
  to every <ModelSelector /> render call
- settings-form.test.tsx: pass verifiedModels and verifiedProviders
  to <SettingsForm /> in test fixture
- Run ruff format on all changed Python files (single→double quotes)
- Fix D202 blank-line-after-docstring in public.py

Co-authored-by: openhands <openhands@all-hands.dev>
2026-03-16 18:50:12 +00:00
openhands
1231bd3de1 refactor: derive all model lists from openhands-sdk (single source of truth)
Replace the hardcoded OPENHANDS_MODELS list and provider-assignment
tables in llm.py with imports from the openhands-sdk package:

  from openhands.sdk.llm.utils.verified_models import (
      VERIFIED_MODELS, VERIFIED_OPENHANDS_MODELS,
      VERIFIED_OPENAI_MODELS, VERIFIED_ANTHROPIC_MODELS,
      VERIFIED_MISTRAL_MODELS,
  )

This means:
- OPENHANDS_MODELS is now built dynamically from the SDK's
  VERIFIED_OPENHANDS_MODELS
- VERIFIED_PROVIDERS is derived from VERIFIED_MODELS.keys()
- _BARE_OPENAI_MODELS, _BARE_ANTHROPIC_MODELS, _BARE_MISTRAL_MODELS
  are sets built from the SDK's per-provider lists
- The SDK is the single source of truth for both V0/V1 conversations

To add or remove a verified model, update the SDK
(openhands-sdk verified_models.py) — no change needed in this repo.

Co-authored-by: openhands <openhands@all-hands.dev>
2026-03-16 18:30:34 +00:00
openhands
611f2f7662 refactor: single source of truth for verified models
Move all verified-model knowledge into the backend so the frontend no
longer duplicates it.

Backend (openhands/utils/llm.py):
- Add get_openhands_models() — returns OPENHANDS_MODELS (self-hosted)
  or the database list (SaaS) through a single entry point.
- Add _assign_provider() — prefixes bare LiteLLM names (gpt-5.2,
  claude-opus-4-6, …) with their canonical provider before sending
  to the frontend.  Tables moved from the frontend's
  verified-models.ts.
- get_supported_llm_models() now returns a ModelsResponse pydantic
  model containing: models (flat list, pre-prefixed), verified_models,
  verified_providers, default_model.

Frontend:
- verified-models.ts reduced to a single DEFAULT_OPENHANDS_MODEL
  constant.  All 6 exported arrays are deleted.
- extract-model-and-provider.ts no longer carries hardcoded provider
  lookup tables — pure parsing only.
- ModelSelector, SettingsForm, settings-modal now receive
  verifiedModels / verifiedProviders as props from the API response.
- useAIConfigOptions unpacks the structured ModelsResponse.

Co-authored-by: openhands <openhands@all-hands.dev>
2026-03-16 17:52:15 +00:00
Juan Michelini
5e5950b091 Add Gemini-3.1-Pro-Preview model support to frontend (#13253)
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Ray Myers <ray.myers@gmail.com>
2026-03-10 16:18:13 +00:00
Juan Michelini
d8444ef626 Add Qwen3-Coder-Next model support to frontend (#13222)
Co-authored-by: openhands <openhands@all-hands.dev>
2026-03-05 19:34:06 -03:00
Juan Michelini
64e96b7c3c Add Kimi-K2.5 model support to frontend (#13227)
Co-authored-by: openhands <openhands@all-hands.dev>
2026-03-05 19:33:59 -03:00
Juan Michelini
6751bba939 Add GLM-5 model support to frontend (#13213)
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: OpenHands Bot <contact@all-hands.dev>
2026-03-05 18:44:33 +04:00
Juan Michelini
a1f73bb4c6 Add Claude-Sonnet-4-6 model support to frontend (#13224)
Co-authored-by: openhands <openhands@all-hands.dev>
2026-03-04 21:13:30 -03:00
Juan Michelini
a11435b061 Add GLM-4.7 model support to frontend (#13202)
Co-authored-by: openhands <openhands@all-hands.dev>
2026-03-04 15:40:15 +00:00
Graham Neubig
d63565186e Add Claude Opus 4.6 model support (#12767)
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: neubig <neubig@users.noreply.github.com>
2026-03-02 13:12:48 -05:00
BitToby
a92bfe6cc0 feat: add database-backed verified models for dynamic model managemen… (#12833)
Co-authored-by: statxc <statxc@user.noreply.github.com>
Co-authored-by: bittoby <bittoby@users.noreply.github.com>
2026-02-26 06:17:18 -07:00
Graham Neubig
40f52dfabc Use lowercase minimax-m2.5 for consistency (#12840)
Co-authored-by: openhands <openhands@all-hands.dev>
2026-02-12 01:29:17 +08:00
Graham Neubig
736f5b2255 Add MiniMax-M2.5 model support (#12835)
Co-authored-by: openhands <openhands@all-hands.dev>
2026-02-11 16:57:22 +00:00
Tim O'Farrell
545257f870 Refactor: Add LLM provider utilities and improve API base URL detection (#12766)
Co-authored-by: openhands <openhands@all-hands.dev>
2026-02-05 14:22:32 -07:00
Xingyao Wang
d063ee599b chore: set default model to claude-opus-4-5-20251101 (#12093)
Co-authored-by: openhands <openhands@all-hands.dev>
2025-12-19 02:50:49 +00:00
Vasco Schiavo
df92923959 Refactor return statement to simplify get_supported_llm_models method (#11947) 2025-12-09 16:27:49 +00:00
mogith-pn
f42a4f75cb feat: Clarifai Integration as LLM Provider (#11324) 2025-10-16 18:23:00 +04:00
Xingyao Wang
e19b3dd1f0 Add claude-sonnet-4-5 model support (#11179)
Co-authored-by: openhands <openhands@all-hands.dev>
2025-09-30 03:27:19 +00:00
Xingyao Wang
8f46a0a7a3 Add gpt-5-mini-2025-08-07 as verified model & supported in OpenHands provider (#10628)
Co-authored-by: openhands <openhands@all-hands.dev>
2025-08-26 13:15:16 +00:00
Xingyao Wang
1474c5bc1c Support gpt-5-2025-08-07 and add it to OpenHands provider (#10172)
Co-authored-by: openhands <openhands@all-hands.dev>
2025-08-08 16:05:51 +00:00
Xingyao Wang
6cea73b6da Add qwen-3-coder-480b to OpenHands provider (#9985)
Co-authored-by: openhands <openhands@all-hands.dev>
2025-07-30 23:12:31 +08:00
Xingyao Wang
eed71c21bd Add kimi-k2-0711-preview model to OpenHands provider (#9755)
Co-authored-by: openhands <openhands@all-hands.dev>
2025-07-17 15:25:31 +04:00
Xingyao Wang
cd32b5508c Add OpenAI o3 model support to verified models and OpenHands provider (#9720)
Co-authored-by: openhands <openhands@all-hands.dev>
2025-07-15 18:19:44 +00:00
Xingyao Wang
6e25d4bbb6 Add OpenHands provider for LLM through OH Cloud (#9526)
Co-authored-by: openhands <openhands@all-hands.dev>
2025-07-15 01:44:49 +08:00
Robert Brennan
205f0234e8 Rename Conversation to ServerConversation and AppConfig to OpenHandsConfig (#8754)
Co-authored-by: openhands <openhands@all-hands.dev>
2025-05-28 21:48:34 +02:00
Panduka Muditha
04bdea5faf feat: Add CLI support for /new, /status and /settings (#8017)
Co-authored-by: Bashwara Undupitiya <bashwarau@verdentra.com>
2025-04-28 08:52:33 -04:00