Skip to content

can not use deepseek-api in opencode #10788

Closed

Description

@9p15p

Description

I want to use DeepSeek's official API in my opencode project, but it seems to be giving an error.

Missing reasoning_content field in the assistant message at message index 8. For more information, please refer to https://api-docs.deepseek.com/guides/thinking_mode#tool-calls

It seems this bug was fixed before, but the patch was later removed.
#4947

Plugins

ohmyopencode

OpenCode version

1.1.36

Steps to reproduce

  1. use deepseek-api(deepseek-reasoner)

Screenshot and/or share link

No response

Operating System

ubuntu22.04

Terminal

zsh

Activity

  1. github-actions commented on Jan 27, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. 9p15p commented on Jan 27, 2026

    @9p15p
    Author

    this is my opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": [
        "oh-my-opencode@latest",
        "opencode-antigravity-auth@1.3.1"
      ],
      "provider": {
        "deepseek": {
          "npm": "@ai-sdk/openai-compatible",
          "name": "DeepSeek",
          "options": {
            "baseURL": "https://api.deepseek.com/v1",
            "apiKey": "{env:DEEPSEEK_API_KEY}"
          },
          "models": {
            "deepseek-chat": {
              "name": "DeepSeek V3",
              "limit": {
                "context": 128000,
                "output": 8192
              }
            },
            "deepseek-reasoner": {
              "name": "DeepSeek R1",
              "limit": {
                "context": 128000,
                "output": 65536
              }
            }
          }
        },
    }
    

    this is my oh-my-opencode.json

    {
      "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json",
      "agents": {
        "sisyphus": {
          "model": "deepseek/deepseek-chat",
          "variant": "high"
        },
        "oracle": {
          "model": "deepseek/deepseek-reasoner",
          "variant": "high"
        },
        "librarian": {
          "model": "deepseek/deepseek-chat"
        },
        "explore": {
          "model": "deepseek/deepseek-chat"
        },
        "multimodal-looker": {
          "model": "opencode/gemini-3-flash"
        },
        "prometheus": {
          "model": "deepseek/deepseek-reasoner",
          "variant": "max"
        },
        "metis": {
          "model": "deepseek/deepseek-reasoner",
          "variant": "max"
        },
        "momus": {
          "model": "deepseek/deepseek-reasoner",
          "variant": "medium"
        },
        "atlas": {
          "model": "deepseek/deepseek-chat"
        }
      },
      "categories": {
        "visual-engineering": {
          "model": "deepseek/deepseek-chat"
        },
        "ultrabrain": {
          "model": "deepseek/deepseek-reasoner",
          "variant": "xhigh"
        },
        "artistry": {
          "model": "deepseek/deepseek-chat",
          "variant": "max"
        },
        "quick": {
          "model": "deepseek/deepseek-chat"
        },
        "unspecified-low": {
          "model": "deepseek/deepseek-chat",
          "variant": "medium"
        },
        "unspecified-high": {
          "model": "deepseek/deepseek-chat",
          "variant": "medium"
        },
        "writing": {
          "model": "deepseek/deepseek-chat"
        }
      }
    }
    
  3. 9p15p commented on Jan 27, 2026

    @9p15p
    Author

    It can be solved by #6040

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions