Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

arrrrny
Copy link
Contributor

@arrrrny arrrrny commented May 29, 2025

fixed the config loading issue for openrouter


Important

Add support for openrouter in createProviderConfig() to return a configuration with type and model_name.

  • Behavior:
    • Add support for openrouter in createProviderConfig() in models.ts, allowing it to return a configuration object with type and model_name.

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

@Copilot Copilot AI review requested due to automatic review settings May 29, 2025 20:14
Copy link
Contributor

github-actions bot commented May 29, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@arrrrny
Copy link
Contributor Author

arrrrny commented May 29, 2025

I have read the Contributor License Agreement (CLA) and hereby sign the CLA.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes the config loading issue by adding support for the openrouter provider in the createProviderConfig function.

  • Added a new case "openrouter" branch to handle OpenRouter provider configs.
Comments suppressed due to low confidence (2)

ui/app/utils/config/models.ts:189

  • Add or update unit tests to cover the new openrouter branch in createProviderConfig to verify that the correct config object is returned for this provider.
export function createProviderConfig(

ui/app/utils/config/models.ts:192

  • Ensure that the ProviderType (and any related enums or type unions) includes "openrouter" so that TypeScript recognizes this new case and prevents type errors.
case "openrouter":

@arrrrny
Copy link
Contributor Author

arrrrny commented May 29, 2025

recheck

github-actions bot added a commit that referenced this pull request May 29, 2025
@virajmehta virajmehta added this pull request to the merge queue May 29, 2025
@virajmehta
Copy link
Member

virajmehta commented May 29, 2025

Opened #2289 to track the more general solution to the issue @arrrrny discovered. Thanks for the contribution!

Merged via the queue into tensorzero:main with commit 4d10fae May 30, 2025
24 of 25 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.

2 participants