Skip to content

Conversation

@cte
Copy link
Collaborator

@cte cte commented Apr 13, 2025

Context

Implementation

Screenshots

before after

How to Test

Get in Touch


Important

Enhance NewRun component to support multiple API providers for model selection in new-run.tsx.

  • Behavior:
    • NewRun component in new-run.tsx now supports multiple API providers for model selection.
    • Adds support for anthropic, bedrock, deepseek, gemini, mistral, openai-native, vertex, glama, requesty, unbound, ollama, and lmstudio providers.
    • Sets model based on apiProvider from imported settings file.
  • Error Handling:
    • Throws error for unsupported apiProvider in onImportSettings function.

This description was created by Ellipsis for 9013b72. It will automatically update as commits are pushed.

@changeset-bot
Copy link

changeset-bot bot commented Apr 13, 2025

⚠️ No Changeset found

Latest commit: 9013b72

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Apr 13, 2025
@cte cte merged commit 4ecec98 into main Apr 13, 2025
15 checks passed
@cte cte deleted the cte/evals-support-all-providers branch April 13, 2025 17:30
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Apr 13, 2025
@shariqriazz
Copy link
Contributor

Thank you :)


const providerSettings = providerProfiles.apiConfigs[providerProfiles.currentApiConfigName] ?? {}
const { apiProvider, openRouterModelId, openAiModelId } = providerSettings
const {
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider extracting the provider model mapping logic (destructuring and switch-case) into a separate helper function to reduce duplication and improve maintainability, especially as more providers are supported.

@dosubot dosubot bot added the enhancement New feature or request label Apr 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants