-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat: add moonshot provider #5869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
21d839e to
dd55cb2
Compare
dd55cb2 to
16117bc
Compare
16117bc to
ef9e6f3
Compare
|
Thank you @CellenLee for taking the time and implementing this, according to https://platform.moonshot.ai/docs/api/chat#public-service-address it seems like moonshot is already OpenAI compatible which means it can be used on Roo Code already. Unless adding a new provider gives user additional benefits we usually don't add new providers that are OpenAI compatible already. I'll close the PR but please feel free to let me know if there's additional benefits to having this provider added. |
|
@daniel-lxs hi,We’re Moonshot AI, a startup from China building open, powerful, affordable LLMs for real-world use. @CellenLee is our colleague. We’re big fans of RooCode, so we submitted this pull request. We’d like to discuss with you the possibility of having our name, Moonshot, displayed in the same manner as DeepSeek. we sincerely appreciate your time and consideration. |
Hi @sjf126 and @CellenLee, I just saw this - would be happy to discuss more. We're big fans of Moonshot and Kimi as well, amazing work! |
|
I couldn't figure out how to reopen this so I merged #6046 instead. Thank you for the contribution! |
|
@mrubens thank you!If there are new features later, we can collaborate to make more user-friendly. |
Related GitHub Issue
Closes: #586
Roo Code Task Context (Optional)
Description
Test Procedure
Pre-Submission Checklist
Screenshots / Videos
Documentation Updates
Additional Notes
Get in Touch
Important
Add Moonshot provider with handler, model definitions, UI integration, and tests.
moonshottoproviderNamesinprovider-settings.ts.moonshotSchematoproviderSettingsSchemaDiscriminatedandproviderSettingsSchemainprovider-settings.ts.moonshotApiKeytoSECRET_STATE_KEYSinglobal-settings.ts.MoonshotHandlerinmoonshot.tsextendingOpenAiHandler.MoonshotHandlertobuildApiHandler()inindex.ts.moonshotModelsandmoonshotDefaultModelIdinmoonshot.ts.moonshotModelstoMODELS_BY_PROVIDERinconstants.ts.Moonshotcomponent inMoonshot.tsxfor settings UI.MoonshotinApiOptions.tsxandproviders/index.ts.MoonshotHandlerinmoonshot.spec.ts.checkExistApiConfig.spec.tsto includemoonshotApiKey.This description was created by
for 21d839e. You can customize this summary. It will automatically update as commits are pushed.