Skip to content

feat: add Kimi K2.5 and K2 model support for Moonshot provider#223

Closed
fpolica91 wants to merge 4 commits intoRightNow-AI:mainfrom
fpolica91:chore-add-providers
Closed

feat: add Kimi K2.5 and K2 model support for Moonshot provider#223
fpolica91 wants to merge 4 commits intoRightNow-AI:mainfrom
fpolica91:chore-add-providers

Conversation

@fpolica91
Copy link

  • Add kimi-k2.5 and kimi-k2 to model catalog with 256K context, vision support, and updated pricing ($0.60/$3.00 per M tokens)
  • Update aliases: "kimi" now resolves to kimi-k2.5 (was moonshot-v1-128k)
  • Add kimi-k2-thinking alias for kimi-k2
  • Add Kimi K2 specific cost metering in metering engine
  • Fix temperature for Kimi K2 models (API requires temperature=1.0) in both streaming and non-streaming code paths

  support, and updated pricing (/bin/zsh.60/.00 per M tokens)
@fpolica91 fpolica91 force-pushed the chore-add-providers branch from 1dff8a4 to 0378da8 Compare March 2, 2026 19:41
egargale pushed a commit to egargale/openfang that referenced this pull request Mar 5, 2026
@modship
Copy link

modship commented Mar 6, 2026

in model_catalog.rs

we should replace :

pub const MOONSHOT_BASE_URL: &str = "https://api.moonshot.cn/v1";

by

pub const MOONSHOT_BASE_URL: &str = "https://api.moonshot.ai/v1";

@jaberjaber23
Copy link
Member

Fixed in d237ecf. Added Kimi K2 and K2.5 model entries with aliases kimi, kimi-k2, kimi-k2.5.

@modship
Copy link

modship commented Mar 8, 2026

Fixed in d237ecf. Added Kimi K2 and K2.5 model entries with aliases kimi, kimi-k2, kimi-k2.5.

you should update the url like this #223 (comment)

thx

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.

3 participants