Skip to content

Add OpenRouter auto and free model router presets#953

Merged
PeterDaveHello merged 1 commit intoChatGPTBox-dev:masterfrom
PeterDaveHello:add-openrouter-router-presets
Mar 14, 2026
Merged

Add OpenRouter auto and free model router presets#953
PeterDaveHello merged 1 commit intoChatGPTBox-dev:masterfrom
PeterDaveHello:add-openrouter-router-presets

Conversation

@PeterDaveHello
Copy link
Copy Markdown
Member

@PeterDaveHello PeterDaveHello commented Mar 14, 2026

Add the two built-in OpenRouter router presets to the existing OpenRouter API model list.

Reference:


Open with Devin

Summary by CodeRabbit

Release Notes

  • New Features
    • Added two new OpenRouter model options: OpenRouter (Auto Router) and OpenRouter (Free Models Router), expanding available model selection choices.

Add the two built-in OpenRouter router presets to the existing
OpenRouter API model list.

Reference:
- https://openrouter.ai/openrouter/auto
- https://openrouter.ai/openrouter/free
@PeterDaveHello PeterDaveHello requested a review from Copilot March 14, 2026 15:40
@qodo-code-review
Copy link
Copy Markdown
Contributor

Review Summary by Qodo

Add OpenRouter auto and free router preset models

✨ Enhancement

Grey Divider

Walkthroughs

Description
• Add two OpenRouter router preset models to configuration
• Include 'openRouter_auto' and 'openRouter_free' model entries
• Update both model keys array and Models object definitions
Diagram
flowchart LR
  A["openRouterApiModelKeys array"] -->|"add presets"| B["openRouter_auto<br/>openRouter_free"]
  C["Models object"] -->|"add model definitions"| D["Auto Router<br/>Free Models Router"]
  B --> D
Loading

Grey Divider

File Changes

1. src/config/index.mjs ✨ Enhancement +10/-0

Add OpenRouter auto and free router presets

• Add 'openRouter_auto' and 'openRouter_free' to openRouterApiModelKeys array
• Add model definitions for both presets in Models object with API values and descriptions
• Maintain alphabetical ordering within the configuration structure

src/config/index.mjs


Grey Divider

Qodo Logo

@qodo-code-review
Copy link
Copy Markdown
Contributor

qodo-code-review Bot commented Mar 14, 2026

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request integrates two new built-in OpenRouter router presets, "Auto Router" and "Free Models Router," into the application's configuration. This enhancement provides users with more flexible and optimized routing options when interacting with the OpenRouter API, allowing for broader access to available models.

Highlights

  • OpenRouter Model Presets: Added two new built-in OpenRouter router presets, 'openRouter_auto' and 'openRouter_free', to the application's configuration.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • src/config/index.mjs
    • Added 'openRouter_auto' and 'openRouter_free' to the 'openRouterApiModelKeys' array.
    • Defined the configuration objects for 'openRouter_auto' and 'openRouter_free' within the 'Models' export, specifying their respective API values and descriptions.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 14, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 83241991-851b-4ae7-a5aa-7d0c1db6defa

📥 Commits

Reviewing files that changed from the base of the PR and between b1d6aab and 7d84693.

📒 Files selected for processing (1)
  • src/config/index.mjs

📝 Walkthrough

Walkthrough

Added two new OpenRouter model configurations to the application: openRouter_auto and openRouter_free. Both entries were integrated into the openRouterApiModelKeys list and the Models mapping with corresponding API values and descriptions.

Changes

Cohort / File(s) Summary
OpenRouter Model Configuration
src/config/index.mjs
Added two new model keys (openRouter_auto and openRouter_free) to the openRouterApiModelKeys list and corresponding entries to the Models export with API endpoint values and human-readable descriptions.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested labels

Review effort 1/5

Poem

🐰 Two routers added, hopping with glee,
Auto and free, as configurable as can be!
New model keys dance through the code,
OpenRouter paths on a well-traveled road!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding OpenRouter auto and free model router presets, matching the file modifications in src/config/index.mjs.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can use Trivy to scan for security misconfigurations and secrets in Infrastructure as Code files.

Add a .trivyignore file to your project to customize which findings Trivy reports.

Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

Copy link
Copy Markdown

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

Adds OpenRouter’s two built-in router presets (openrouter/auto and openrouter/free) to the existing OpenRouter API model catalog so they can be selected like other OpenRouter-backed models.

Changes:

  • Added openRouter_auto and openRouter_free to openRouterApiModelKeys.
  • Added corresponding Models entries mapping to openrouter/auto and openrouter/free with user-facing descriptions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds support for OpenRouter's 'auto' and 'free' model router presets. The changes are functionally correct. My review includes a couple of suggestions to improve code consistency and maintainability.

Comment thread src/config/index.mjs
Comment thread src/config/index.mjs
@PeterDaveHello PeterDaveHello merged commit fde830b into ChatGPTBox-dev:master Mar 14, 2026
8 checks passed
@PeterDaveHello PeterDaveHello deleted the add-openrouter-router-presets branch March 14, 2026 16:12
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