Skip to content

Conversation

@vigneshsubbiah16
Copy link
Contributor

@vigneshsubbiah16 vigneshsubbiah16 commented Jan 28, 2025

Description

Supports Unbound as an API provider on Roo Code. https://gateway.getunbound.ai

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  1. After building the code, go to Roo Code settings on VS Code
  2. Choose Unbound as an API provider
  3. Click Get Unbound API key button that appears below API key.
  4. Create an application on Unbound and get an API key.
  5. Paste the API key in the text box on Roo code
  6. Select any model
  7. Start doing any new tasks and the API should go through.

Checklist:

  • My code follows the patterns of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation

Additional context

Unbound provides enterprise features for supporting LLM transactions like logging, evals on top of the gateway. Currently there is 50$ free credits for using Unbound gateway.
https://www.loom.com/share/f81de1a9b8db43419adb39fbd566df23

Next up:

  • Need to return cached tokens for anthropic for fixing cost calculation.
  • Support fetching of more updated models during init.

Related Issues

Reviewers


Important

Adds support for Unbound as an API provider, including handler, UI configuration, and tests.

  • Behavior:
    • Adds UnboundHandler to handle API requests for Unbound provider in index.ts and unbound.ts.
    • Updates ClineProvider.ts to store and manage Unbound API keys and model IDs.
    • Adds Unbound as an option in ApiOptions.tsx for UI configuration.
  • Tests:
    • Adds unbound.test.ts to test UnboundHandler for prompt completion and error handling.
  • Models:
    • Defines Unbound models in api.ts with default model ID and model information.

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

@changeset-bot
Copy link

changeset-bot bot commented Jan 28, 2025

⚠️ No Changeset found

Latest commit: 63b8e89

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

@vigneshsubbiah16 vigneshsubbiah16 changed the title Supports unbound provider [WIP]Supports unbound provider Jan 28, 2025
@vigneshsubbiah16 vigneshsubbiah16 changed the title [WIP]Supports unbound provider Supports unbound provider Jan 28, 2025
@vigneshsubbiah16 vigneshsubbiah16 changed the title Supports unbound provider Supports unbound API provider Jan 28, 2025
@vigneshsubbiah16 vigneshsubbiah16 marked this pull request as ready for review January 28, 2025 19:42
Comment on lines +2139 to +2140
this.getSecret("unboundApiKey") as Promise<string | undefined>,
this.getGlobalState("unboundModelId") as Promise<string | undefined>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
this.getSecret("unboundApiKey") as Promise<string | undefined>,
this.getGlobalState("unboundModelId") as Promise<string | undefined>,
this.getSecret("unboundApiKey") as Promise<string | undefined>,
this.getGlobalState("unboundModelId") as Promise<string | undefined>,

Copy link
Collaborator

@mrubens mrubens left a comment

Choose a reason for hiding this comment

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

Code looks good aside from the one indenting nitpick! Is there a good way for me to test this out myself? Feel free to DM me in discord. Thanks!

@mrubens mrubens merged commit 76278ed into RooCodeInc:main Jan 29, 2025
6 checks passed
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.

3 participants