Skip to content

feat: add k2.6-code-preview support for kimi-coding / kimi-coding-cn / moonshot #11168

@nicoechaniz

Description

@nicoechaniz

Problem

The new k2.6-code-preview model from Kimi (available via OpenRouter and Moonshot) is not recognized by Hermes Agent when selecting providers kimi-coding, kimi-coding-cn, or moonshot.

Selecting it via /model or the interactive model picker produces spurious "not found" warnings because:

  1. The model is missing from the static curated lists.
  2. The Kimi Coding Plan API only exposes kimi-for-coding in /models, so live validation rejects k2.6-code-preview even though it is valid for inference.
  3. switch_model() resolves the wrong internal provider ID (kimi-for-coding instead of kimi-coding), causing validation mismatches.

Expected

k2.6-code-preview should appear in pickers, validate cleanly, and use the correct internal provider routing.

Related

PR #10751

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to haveprovider/kimiKimi / Moonshottype/featureNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions