-
Notifications
You must be signed in to change notification settings - Fork 2.5k
feat: Add Cloud.ru Foundation Models provider #9321
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
base: main
Are you sure you want to change the base?
Conversation
- Add CloudRu provider with support for GigaChat and Qwen models - Implement CloudRuHandler extending BaseOpenAiCompatibleProvider - Add model definitions for GigaChat (Max, Pro, Plus, base, 2-Max) and Qwen Coder models - Include comprehensive test coverage for the new provider - Update provider settings and type definitions Closes #9320
Review completed. Found one minor documentation issue with the test execution command.
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
| @@ -0,0 +1,332 @@ | |||
| // npx vitest run api/providers/__tests__/cloudru.spec.ts | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test command in this comment will fail because tests must be run from the workspace containing the vitest dependency. According to the project's test execution rules in .roo/rules/rules.md, backend tests should be run with cd src && npx vitest run api/providers/__tests__/cloudru.spec.ts to avoid the "vitest: command not found" error.
| // npx vitest run api/providers/__tests__/cloudru.spec.ts | |
| // cd src && npx vitest run api/providers/__tests__/cloudru.spec.ts |
Fix it with Roo Code or mention @roomote and request a fix.
|
I'm creating PR #9326 to fix the /v1/models flow and adjust the legacy OpenAI API handling for the GigaChat model family |
Description
This PR attempts to address Issue #9320 by adding support for Cloud.ru Foundation Models (CFM) as a new provider in Roo Code. Feedback and guidance are welcome!
Changes
Implementation Details
The Cloud.ru provider is implemented as an OpenAI-compatible provider, allowing it to leverage existing infrastructure while providing access to Cloud.ru's Foundation Models. Users can:
Testing
Related Issue
Closes #9320
Checklist
Important
Adds Cloud.ru Foundation Models provider with GigaChat and Qwen models, including handler implementation, UI support, and tests.
cloudru.ts.CloudRuHandlerincloudru.tsfor OpenAI-compatible API.provider-settings.tsto include Cloud.ru in provider settings and schemas.index.tsinapiandprovidersto includeCloudRuHandler.useSelectedModel.tsto support Cloud.ru model selection.cloudru.ts.cloudru.spec.tsfor testingCloudRuHandlerbehavior, including API key handling, model selection, message creation, and temperature configuration.MODELS_BY_PROVIDERinprovider-settings.tsto include Cloud.ru models.This description was created by
for 1b44fca. You can customize this summary. It will automatically update as commits are pushed.