Skip to content

feat: add Kimi provider#130

Merged
lizhengfeng101 merged 2 commits into
alibaba:mainfrom
guqihao-7:feat/add-kimi-provider
Jun 15, 2026
Merged

feat: add Kimi provider#130
lizhengfeng101 merged 2 commits into
alibaba:mainfrom
guqihao-7:feat/add-kimi-provider

Conversation

@guqihao-7

Copy link
Copy Markdown
Contributor

Summary

  • Add built-in Kimi provider configuration
  • Use Moonshot OpenAI-compatible endpoint: https://api.moonshot.cn/v1
  • Support KIMI_API_KEY as the provider API key environment variable
  • Add default Kimi/Moonshot model options, including K2, text, auto, and vision preview models

OCR review:
image

OCR config provider:
image

@github-actions

Copy link
Copy Markdown

OpenCodeReview: No comments generated. Looks good to me.

Comment thread internal/llm/providers.go Outdated
Comment on lines +103 to +109
"moonshot-v1-8k",
"moonshot-v1-32k",
"moonshot-v1-128k",
"moonshot-v1-auto",
"moonshot-v1-8k-vision-preview",
"moonshot-v1-32k-vision-preview",
"moonshot-v1-128k-vision-preview",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

remove

Comment thread internal/llm/providers.go Outdated
Co-authored-by: lizhengfeng <lizhengfeng.lzf@alibaba-inc.com>
@lizhengfeng101 lizhengfeng101 merged commit 3b68c93 into alibaba:main Jun 15, 2026
1 check passed
lizhengfeng101 added a commit that referenced this pull request Jun 15, 2026
Remove the duplicate kimi provider entry introduced by overlapping PRs
(#130 and #134). Keep the Kimi Moonshot API entry with MOONSHOT_API_KEY.

Set LC_ALL=C in Makefile test target to ensure git outputs English
messages regardless of system locale.
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.

2 participants