Skip to content

DeepSeek v4.1 Flash always returns 400 #54117

Closed as not planned
Closed as not planned

Description

@ioma8

Description

I am logged in via the OpenCode Go. Whenever I select DeepSeek v4.1 Flash it always returns only:

Error: Provider request failed with HTTP 400
Build · DeepSeek V4.1 Flash · 12.6s

I have seen similiar issues, but this seems to be maybe deeper issues. This happens every time. Not one of three requests. I just subscribed to the OpenCode Go subscription for this DeepSeek model and its unavailable to me. I have the opencode cli v2 installed freshly.

Plugins

no plugins

OpenCode version

v2.0.26

Steps to reproduce

  1. Sign in with OpenCode Go
  2. Select model DeepSeek V4.1 Flash
  3. You always receive only error 400 message on every prompt attempt

Screenshot and/or share link

No response

Operating System

macos

Terminal

Ghostty

Activity

  1. opencode-agent commented on Oct 9, 2026

    @opencode-agent
    Contributor

    Thanks for the report. I couldn't reproduce this here: the 400 comes from the OpenCode Go service, and our test sandbox has no Go subscription, so a maintainer with access will need to look at it.

    Provider request failed with HTTP 400 is OpenCode's generic fallback for when the service's error reply doesn't say why it rejected the request, so the useful detail is missing. If you can, please add:

    • whether other Go models (e.g. DeepSeek V4 Pro, GLM) work for you in a new session
    • whether changing the reasoning variant/effort for DeepSeek V4.1 Flash makes any difference
    • any log lines from around the failure that show the response body

    These open issues are related, though in them the 400s come and go or appear late in long sessions, not on every prompt:

  2. ww-TNT commented on Oct 16, 2026

    @ww-TNT
    Image

    I encountered HTTP 400 errors with both deepseek-v4-pro and deepseek-v4.1-flash on OpenCode Go.

    Workaround that fixed the issue:

    Open the OpenCode Go settings.

    Change Regions from Europe & United States to Global.

    After switching to Global, both models started working correctly.

    This suggests the issue may be related to regional routing or model availability rather than the models themselves.

    Hope this helps others experiencing the same issue.

  3. neriousy commented on Oct 21, 2026

    @neriousy
    Member

    Thanks for the report. This is about how the model itself behaves when served through OpenCode Go (repeating itself, broken tool calls, speed, or rejecting large requests), not a bug in the OpenCode app. We pass these reports to our upstream providers. Starting a new session or running /compact usually helps with loops and oversized-request errors. Closing this to keep the tracker focused; the main discussion is in #50206.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions