Skip to content

Conversation

@mrubens
Copy link
Collaborator

@mrubens mrubens commented Apr 8, 2025

#2392


Important

This PR adds support for custom Host headers and legacy format options for OpenAI-compatible models, updating API handling, configuration settings, and UI components.

  • Behavior:
    • Adds support for custom Host header in OpenAiHandler in openai.ts and getOpenAiModels().
    • Introduces openAiLegacyFormat option in OpenAiHandler to handle legacy format for message conversion.
  • Configuration:
    • Adds openAiHostHeader and openAiLegacyFormat to ProviderSettings in types.ts and roo-code.d.ts.
    • Updates providerSettingsSchema in schemas/index.ts to include new options.
  • UI:
    • Updates ApiOptions.tsx to include checkboxes for openAiHostHeader and openAiLegacyFormat.
    • Adds translations for new settings in multiple locale files.

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

@changeset-bot
Copy link

changeset-bot bot commented Apr 8, 2025

⚠️ No Changeset found

Latest commit: dd60283

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 size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Apr 8, 2025
@mrubens mrubens force-pushed the custom_host_header branch from 6611564 to 53e030f Compare April 9, 2025 00:25
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Apr 9, 2025
@mrubens mrubens force-pushed the custom_host_header branch from 53e030f to 4805eef Compare April 9, 2025 00:27
@mrubens mrubens force-pushed the custom_host_header branch from 4805eef to dd60283 Compare April 9, 2025 00:29
@mrubens mrubens merged commit b01615f into main Apr 9, 2025
12 checks passed
@mrubens mrubens deleted the custom_host_header branch April 9, 2025 02:02
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Apr 9, 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:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants