Skip to content

Added Kimi API key invocation and the new model Kimi-k2.5 #10850

Closed

Description

@anyiba

Description

Kimi-k2.5 model adaptation,
Added Kimi API key invocation and the new model Kimi-k2.5

Plugins

vscode

OpenCode version

v1.1.36

Steps to reproduce

thinking is enabled but reasoning_content is missing in assistant tool call message at index 2

Screenshot and/or share link

Image

Operating System

windows 11

Terminal

VS Code terminal

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. kassieclaire commented on Jan 27, 2026

    @kassieclaire

    Are you using DCP? There might be an issue related to pruning tool use context that includes thinking for K2.5

  3. mcowger commented on Jan 27, 2026

    @mcowger

    I have this an dont use DCP

  4. kassieclaire commented on Jan 27, 2026

    @kassieclaire

    Do you have any custom settings related to the Kimi-K2.5 model in your configuration, and which provider are you using?

  5. qingchunnh commented on Jan 28, 2026

    @qingchunnh

    I'm using OpenRouter's API. I solved a similar problem through #6040, so this might help you.

  6. jackjoliet commented on Feb 11, 2026

    @jackjoliet

    Might be a different stack, but I was facing the same issue with ai-sdk. Here's what solved it for me

    // reasoning_content — Kimi's API requires this field on every assistant
    // tool-call message when thinking mode is enabled.
    const kimiProvider = createOpenAICompatible({
      name: 'moonshot',
      baseURL: 'https://api.moonshot.ai/v1',
      apiKey: KIMI_API_KEY,
      includeUsage: true,
      transformRequestBody: (body: Record<string, unknown>) => {
        const messages = body.messages
        if (!Array.isArray(messages)) return body
        for (const msg of messages) {
          if (
            msg.role === 'assistant' &&
            Array.isArray(msg.tool_calls) &&
            msg.tool_calls.length > 0 &&
            !msg.reasoning_content
          ) {
            msg.reasoning_content = '.'
          }
        }
        return body
      },
    })
    
  7. github-actions commented on Apr 13, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

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 workingwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions