Skip to content

Conversation

@AlexKer
Copy link

@AlexKer AlexKer commented Nov 21, 2025

Related GitHub Issue

Similar to #3034
No issue. This is direct message request from Roo Code team (Matt Rubens)

Description

  • Add Baseten provider type definitions with 10 models
  • Implement BasetenHandler extending BaseOpenAiCompatibleProvider
  • Add Baseten UI component for API key configuration
  • Add validation logic for Baseten API key
  • Include Baseten in provider settings schema and constants
  • Add Baseten translations (basetenApiKey, getBasetenApiKey)
  • Add basetenApiKey to SECRET_STATE_KEYS for proper storage
  • Add Baseten provider documentation
  • Default model: moonshotai/Kimi-K2-Thinking

Test Procedure

Build and run the extension from the add-baseten-provider branch.
Open the Roo Code extension view.
Navigate to the Settings panel.
In the "Providers" section, select "Baseten" from the "API Provider" dropdown.
Verify: The label for the API key input field reads "Base API Key" and the button below it reads "Get Baseten API Key".
Run Roo Code.

Pre-Submission Checklist

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I have performed a thorough self-review of my code.
  • Testing: New and/or updated tests have been added to cover my changes (if applicable).
  • Documentation Impact: I have considered if my changes require documentation updates (see "Documentation Updates" section below).
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Documentation Updates

Does this PR necessitate updates to user-facing documentation?

  • No documentation updates are required.
  • Yes, documentation updates are required. (Please describe what needs to be updated or link to a PR in the docs repository).

New docs are added in this PR.


Important

Add Baseten provider integration with model definitions, UI components, and API key configuration.

  • Provider Integration:
    • Add BasetenHandler in src/api/providers/baseten.ts extending BaseOpenAiCompatibleProvider.
    • Register BasetenHandler in src/api/index.ts and src/api/providers/index.ts.
    • Define basetenModels and BasetenModelInfo in packages/types/src/providers/baseten.ts.
  • UI Components:
    • Add Baseten component in webview-ui/src/components/settings/providers/Baseten.tsx for API key input.
    • Update ApiOptions.tsx to include Baseten in provider selection.
    • Add Baseten translations in webview-ui/src/i18n/locales/en/settings.json.
  • Configuration and Validation:
    • Add basetenApiKey to SECRET_STATE_KEYS in packages/types/src/global-settings.ts.
    • Include Baseten in providerSettingsSchema in packages/types/src/provider-settings.ts.
    • Add validation for basetenApiKey in webview-ui/src/utils/validate.ts.
  • Documentation:
    • Add docs/providers/baseten.md for Baseten provider setup and usage.

This description was created by Ellipsis for 2fef8f4. You can customize this summary. It will automatically update as commits are pushed.

- Add Baseten model definitions (10 models) in packages/types/src/providers/baseten.ts
- Implement BasetenHandler extending BaseOpenAiCompatibleProvider
- Add Baseten UI component for API key input
- Add basetenApiKey to SECRET_STATE_KEYS (critical fix for welcome screen)
- Register Baseten in provider settings, API handlers, and UI components
- Add validation and translation support
- Baseten appears last in provider dropdown as requested
- Add Baseten provider type definitions with 10 models
- Implement BasetenHandler extending BaseOpenAiCompatibleProvider
- Add Baseten UI component for API key configuration
- Add validation logic for Baseten API key
- Include Baseten in provider settings schema and constants
- Add Baseten translations (basetenApiKey, getBasetenApiKey)
- Add basetenApiKey to SECRET_STATE_KEYS for proper storage
- Add Baseten provider documentation
- Default model: moonshotai/Kimi-K2-Thinking
@AlexKer AlexKer requested review from cte, jr and mrubens as code owners November 21, 2025 04:45
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Nov 21, 2025
@AlexKer AlexKer changed the title Add Baseten Provider (feat): Add Baseten Provider Nov 21, 2025
@dosubot dosubot bot added documentation Improvements or additions to documentation enhancement New feature or request labels Nov 21, 2025
@roomote
Copy link
Contributor

roomote bot commented Nov 21, 2025

Rooviewer Clock   See task on Roo Cloud

Re-review completed. No new issues found. The recent changes improve reasoning content parsing by supporting both reasoning_content and reasoning fields.

  • Fix typo in model description: "Septemeber" → "September"
Previous reviews

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Nov 21, 2025
Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

3 participants