Skip to content

Conversation

@rychavda
Copy link
Contributor

@rychavda rychavda commented Feb 8, 2026

Summary

  • Adds Moonshot AI as a new LLM provider with their Kimi K2.5 model
  • Kimi's API is OpenAI-compatible, so the integration uses ChatOpenAI with a custom base URL (https://api.moonshot.cn/v1) — same pattern as xAI/Grok
  • Kimi K2.5 excels at long-context understanding (up to 2M tokens), financial analysis, and coding tasks

Changes

  • src/model/llm.ts — Added kimi- prefix model factory and moonshot fast model variant
  • src/utils/env.ts — Registered Moonshot provider config with MOONSHOT_API_KEY
  • src/components/ModelSelector.tsx — Added Moonshot provider with Kimi K2.5 model to the UI
  • env.example — Added MOONSHOT_API_KEY placeholder

Test plan

  • TypeScript type-check passes (tsc --noEmit)
  • All existing tests pass (bun test — 9/9)
  • Manual testing with a Moonshot API key (requires account at https://platform.moonshot.cn/)

Closes #105

Add support for Moonshot AI's Kimi K2.5 model as a new LLM provider.
Kimi's API is OpenAI-compatible, so integration uses ChatOpenAI with
a custom base URL (https://api.moonshot.cn/v1).

Changes:
- Add 'kimi-' prefix model factory in llm.ts
- Add 'moonshot' fast model variant
- Register Moonshot provider config in env.ts
- Add Moonshot provider with Kimi K2.5 model to ModelSelector
- Add MOONSHOT_API_KEY to env.example

Closes virattt#105
Copy link
Owner

@virattt virattt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@virattt virattt merged commit 639b1dc into virattt:main Feb 9, 2026
2 checks passed
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.

Feature Request: Add support for Kimi K2.5 (Moonshot AI)

2 participants