Skip to content

feat: register deepseek-v4.1-flash as a verified model - #4940

Merged
simonrosenberg merged 2 commits into
mainfrom
feat/deepseek-v4-1-flash-default
Sep 17, 2026
Merged

simonrosenberg merged 2 commits into
mainfrom
feat/deepseek-v4-1-flash-default

Conversation

@juanmichelini

@juanmichelini juanmichelini commented Sep 10, 2026 •

Copy link
Copy Markdown
Collaborator

HUMAN:

Promote deepseek-v4.1-flash to the default model; the SDK needs to register it as verified.


AGENT:

Why

deepseek-v4.1-flash is out and should become the OpenHands Cloud default model, replacing deepseek-v4-flash. The SDK is the single source of truth for the verified OpenHands model list and bare-name→provider mapping, so it must register the new model before the enterprise SaaS default (openhands/deepseek-v4.1-flash) can resolve. This is the SDK half of a coordinated cross-repo release (enterprise migration OpenHands/enterprise#348, frontend OpenHands/OpenHands#17259, saas-deploy OpenHands/saas-deploy#985/#986).

Summary

  • Add deepseek-v4.1-flash to VERIFIED_DEEPSEEK_MODELS and VERIFIED_OPENHANDS_MODELS (kept alongside deepseek-v4-flash and deepseek-v4-flash-vision-exp).
  • Add deepseek/deepseek-v4.1-flash to SEND_REASONING_CONTENT_MODELS (dual-mode thinking/non-thinking, same default feature settings as deepseek-v4-flash).

Issue Number

Fixes #4941

How to Test

cd openhands-sdk
python -c "from openhands.sdk.llm.utils.verified_models import VERIFIED_OPENHANDS_MODELS, VERIFIED_DEEPSEEK_MODELS; print('openhands:', 'deepseek-v4.1-flash' in VERIFIED_OPENHANDS_MODELS); print('deepseek:', 'deepseek-v4.1-flash' in VERIFIED_DEEPSEEK_MODELS); print('vision kept:', 'deepseek-v4-flash-vision-exp' in VERIFIED_DEEPSEEK_MODELS)"

Expected output:

openhands: True
deepseek: True
vision kept: True

Ran locally: module imports cleanly and all three assertions print True. The prior deepseek-v4-flash and deepseek-v4-flash-vision-exp entries are retained from main.

Type

  • Feature

Notes

deepseek-v4.1-flash is dual-mode (thinking/non-thinking) and mirrors deepseek-v4-flash's feature entries. Merge this first so the enterprise SaaS can consume the new verified-model set.


This PR was created by an AI agent (OpenHands) on behalf of @juanmichelini.


🐳 Agent Server images for this PR — GHCR package, pull/run commands, and all pushed tags (click to expand)

• GHCR package: https://github.com/OpenHands/agent-sdk/pkgs/container/agent-server

Variants & Base Images

Variant Architectures Base Image Docs / Tags
java amd64, arm64 eclipse-temurin:17-jdk Link
python-slim amd64, arm64 python-node-runtime Link
python-minimal amd64, arm64 python-node-runtime Link
python amd64, arm64 python-node-runtime Link
golang amd64, arm64 golang:1.21-bookworm Link

Pull (multi-arch manifest)

# Each variant is a multi-arch manifest supporting both amd64 and arm64
docker pull ghcr.io/openhands/agent-server:a6766c9-python

Run

docker run -it --rm \
  -p 8000:8000 \
  --name agent-server-a6766c9-python \
  ghcr.io/openhands/agent-server:a6766c9-python

All tags pushed for this build

ghcr.io/openhands/agent-server:a6766c9-golang-amd64
ghcr.io/openhands/agent-server:a6766c93214c52ba15f429eb21eeee8ec5edc0d4-golang-amd64
ghcr.io/openhands/agent-server:feat-deepseek-v4-1-flash-default-golang-amd64
ghcr.io/openhands/agent-server:a6766c9-golang_tag_1.21-bookworm-amd64
ghcr.io/openhands/agent-server:a6766c9-golang-arm64
ghcr.io/openhands/agent-server:a6766c93214c52ba15f429eb21eeee8ec5edc0d4-golang-arm64
ghcr.io/openhands/agent-server:feat-deepseek-v4-1-flash-default-golang-arm64
ghcr.io/openhands/agent-server:a6766c9-golang_tag_1.21-bookworm-arm64
ghcr.io/openhands/agent-server:a6766c9-java-amd64
ghcr.io/openhands/agent-server:a6766c93214c52ba15f429eb21eeee8ec5edc0d4-java-amd64
ghcr.io/openhands/agent-server:feat-deepseek-v4-1-flash-default-java-amd64
ghcr.io/openhands/agent-server:a6766c9-eclipse-temurin_tag_17-jdk-amd64
ghcr.io/openhands/agent-server:a6766c9-java-arm64
ghcr.io/openhands/agent-server:a6766c93214c52ba15f429eb21eeee8ec5edc0d4-java-arm64
ghcr.io/openhands/agent-server:feat-deepseek-v4-1-flash-default-java-arm64
ghcr.io/openhands/agent-server:a6766c9-eclipse-temurin_tag_17-jdk-arm64
ghcr.io/openhands/agent-server:a6766c9-python-amd64
ghcr.io/openhands/agent-server:a6766c93214c52ba15f429eb21eeee8ec5edc0d4-python-amd64
ghcr.io/openhands/agent-server:feat-deepseek-v4-1-flash-default-python-amd64
ghcr.io/openhands/agent-server:a6766c9-python-node-runtime-amd64
ghcr.io/openhands/agent-server:a6766c9-python-arm64
ghcr.io/openhands/agent-server:a6766c93214c52ba15f429eb21eeee8ec5edc0d4-python-arm64
ghcr.io/openhands/agent-server:feat-deepseek-v4-1-flash-default-python-arm64
ghcr.io/openhands/agent-server:a6766c9-python-node-runtime-arm64
ghcr.io/openhands/agent-server:a6766c9-python-minimal-amd64
ghcr.io/openhands/agent-server:a6766c93214c52ba15f429eb21eeee8ec5edc0d4-python-minimal-amd64
ghcr.io/openhands/agent-server:feat-deepseek-v4-1-flash-default-python-minimal-amd64
ghcr.io/openhands/agent-server:a6766c9-python-node-runtime-minimal-amd64
ghcr.io/openhands/agent-server:a6766c9-python-minimal-arm64
ghcr.io/openhands/agent-server:a6766c93214c52ba15f429eb21eeee8ec5edc0d4-python-minimal-arm64
ghcr.io/openhands/agent-server:feat-deepseek-v4-1-flash-default-python-minimal-arm64
ghcr.io/openhands/agent-server:a6766c9-python-node-runtime-minimal-arm64
ghcr.io/openhands/agent-server:a6766c9-python-slim-amd64
ghcr.io/openhands/agent-server:a6766c93214c52ba15f429eb21eeee8ec5edc0d4-python-slim-amd64
ghcr.io/openhands/agent-server:feat-deepseek-v4-1-flash-default-python-slim-amd64
ghcr.io/openhands/agent-server:a6766c9-python-node-runtime-slim-amd64
ghcr.io/openhands/agent-server:a6766c9-python-slim-arm64
ghcr.io/openhands/agent-server:a6766c93214c52ba15f429eb21eeee8ec5edc0d4-python-slim-arm64
ghcr.io/openhands/agent-server:feat-deepseek-v4-1-flash-default-python-slim-arm64
ghcr.io/openhands/agent-server:a6766c9-python-node-runtime-slim-arm64
ghcr.io/openhands/agent-server:a6766c9-golang
ghcr.io/openhands/agent-server:a6766c93214c52ba15f429eb21eeee8ec5edc0d4-golang
ghcr.io/openhands/agent-server:feat-deepseek-v4-1-flash-default-golang
ghcr.io/openhands/agent-server:a6766c9-golang_tag_1.21-bookworm
ghcr.io/openhands/agent-server:a6766c9-java
ghcr.io/openhands/agent-server:a6766c93214c52ba15f429eb21eeee8ec5edc0d4-java
ghcr.io/openhands/agent-server:feat-deepseek-v4-1-flash-default-java
ghcr.io/openhands/agent-server:a6766c9-eclipse-temurin_tag_17-jdk
ghcr.io/openhands/agent-server:a6766c9-python-minimal
ghcr.io/openhands/agent-server:a6766c93214c52ba15f429eb21eeee8ec5edc0d4-python-minimal
ghcr.io/openhands/agent-server:feat-deepseek-v4-1-flash-default-python-minimal
ghcr.io/openhands/agent-server:a6766c9-python-node-runtime-minimal
ghcr.io/openhands/agent-server:a6766c9-python-slim
ghcr.io/openhands/agent-server:a6766c93214c52ba15f429eb21eeee8ec5edc0d4-python-slim
ghcr.io/openhands/agent-server:feat-deepseek-v4-1-flash-default-python-slim
ghcr.io/openhands/agent-server:a6766c9-python-node-runtime-slim
ghcr.io/openhands/agent-server:a6766c9-python
ghcr.io/openhands/agent-server:a6766c93214c52ba15f429eb21eeee8ec5edc0d4-python
ghcr.io/openhands/agent-server:feat-deepseek-v4-1-flash-default-python
ghcr.io/openhands/agent-server:a6766c9-python-node-runtime

About Multi-Architecture Support

  • Each variant tag (e.g., a6766c9-python) is a multi-arch manifest supporting both amd64 and arm64
  • Docker automatically pulls the correct architecture for your platform
  • Individual architecture tags (e.g., a6766c9-python-amd64) are also available if needed

Adds deepseek-v4.1-flash to the SDK's verified-model tables so it is
offered by self-hosted deployments and so the enterprise SaaS default
(canonical id `openhands/deepseek-v4.1-flash`) resolves correctly.

deepseek-v4.1-flash is dual-mode (thinking/non-thinking) and uses the
same default feature settings as deepseek-v4-flash.

- verified_models.py: add to VERIFIED_DEEPSEEK_MODELS and
  VERIFIED_OPENHANDS_MODELS (kept alongside deepseek-v4-flash and
  deepseek-v4-flash-vision-exp).
- model_features.py: add to SEND_REASONING_CONTENT_MODELS as
  `deepseek/deepseek-v4.1-flash` (dual-mode).

This is the SDK half of a coordinated cross-repo release that promotes
deepseek-v4.1-flash to the OpenHands Cloud default model.

Co-authored-by: openhands <openhands@all-hands.dev>
@all-hands-bot

Copy link
Copy Markdown
Collaborator

👋 This PR needs a couple of things fixed before OpenHands can review it:

  • the PR description's HUMAN: section needs at least 20 characters describing what you tested, not just the template placeholder

Push an update once this is addressed and this check re-runs automatically.

This is an automated check - no AI was used to generate this comment.

@github-actions

Copy link
Copy Markdown
Contributor

Python API breakage checks — ✅ PASSED

Result: ✅ PASSED

Action log

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

REST API breakage checks (OpenAPI) — ✅ PASSED

Result: ✅ PASSED

Action log

@all-hands-bot

Copy link
Copy Markdown
Collaborator

🤖 OpenHands is reviewing this PR.

Head commit: 1d44f54cd1982dd78a580e9b6eeee17a6fdf3931
View the conversation: https://oss-agent-canvas.ngrok.dev/conversations/dd56fec9-d348-4e61-94e9-345e7bb694a0

This comment was posted by an AI agent (OpenHands).

@all-hands-bot

Copy link
Copy Markdown
Collaborator

⚠️ OpenHands PR Reviewer encountered a problem at commit 1d44f54cd198 (status: error).

This comment was posted by an AI agent (OpenHands).

@simonrosenberg

Copy link
Copy Markdown
Member

@OpenHands fix merge conflicts

@openhands-ai

openhands-ai Bot commented Sep 17, 2026

Copy link
Copy Markdown

I'm on it! simonrosenberg can track my progress at all-hands.dev

Resolve the verified model list conflict by retaining DeepSeek v4.1 Flash alongside the newer main-branch entries.

Co-authored-by: openhands <openhands@all-hands.dev>

Copy link
Copy Markdown
Member

Merge conflicts are resolved in a6766c9. I merged current main, retained both deepseek-v4.1-flash and the newer deepseek-v3.2-reasoner entries, and pushed the result. GitHub now reports the PR as mergeable. Focused pre-commit checks passed, and tests/sdk/llm/test_model_list.py passes (10 tests).

This comment was created by an AI agent (OpenHands) on behalf of the user.

@openhands-ai

openhands-ai Bot commented Sep 17, 2026

Copy link
Copy Markdown

Resolved and pushed the merge conflicts for PR #4940.

  • Merged current main into feat/deepseek-v4-1-flash-default.
  • Preserved deepseek-v4.1-flash alongside main’s deepseek-v3.2-reasoner entries.
  • Pushed merge commit a6766c93.
  • GitHub now reports the PR as MERGEABLE; the PR diff remains limited to the intended two files and three additions.
  • Pre-commit checks passed for both changed files.
  • tests/sdk/llm/test_model_list.py: 10 passed.
  • Posted a confirmation on the PR.

CI currently has no failures: 20 successful, 2 skipped, and 22 pending checks.

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.

feat: register deepseek-v4.1-flash as a verified model

5 participants