Skip to content

Update AI provider configurations with new models - #250

Merged
shunkakinoki merged 2 commits into
mainfrom
feature/add-new-ai-models
Sep 30, 2025
Merged

Update AI provider configurations with new models#250
shunkakinoki merged 2 commits into
mainfrom
feature/add-new-ai-models

Conversation

@shunkakinoki

Copy link
Copy Markdown
Owner

Add new AI models and update existing configurations to include deepseek, moonshotai, openai, and qwen models with appropriate provider settings.

Add new AI models and update existing provider configurations to include deepseek/deepseek-chat-v3.1:free, moonshotai/kimi-k2:free, openai/gpt-oss-120b:free, and qwen/qwen3-coder:free models with proper provider settings
@shunkakinoki shunkakinoki self-assigned this Sep 30, 2025
@coderabbitai

coderabbitai Bot commented Sep 30, 2025

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Summary by CodeRabbit

  • New Features
    • Added new free AI model options: DeepSeek Chat v3.1, Moonshot Kimi K2 (free variant added alongside existing), OpenAI GPT‑OSS 120B, and Qwen3 Coder.
    • These models are now available for selection where models can be chosen in the app.
    • Existing non-free Moonshot Kimi K2 remains available; no changes to other existing model options.

Walkthrough

Added four new ":free" model entries to the OpenRouter models configuration in home-manager/modules/opencode/opencode.jsonc, each with provider order set to baseten and allow_fallbacks set to false. Existing configurations remain unchanged.

Changes

Cohort / File(s) Summary
OpenRouter model additions
home-manager/modules/opencode/opencode.jsonc
Added models: deepseek/deepseek-chat-v3.1:free, moonshotai/kimi-k2:free, openai/gpt-oss-120b:free, qwen/qwen3-coder:free; all configured with provider order baseten and allow_fallbacks: false. Existing non-free entries preserved.

Sequence Diagram(s)

sequenceDiagram
    autonumber
    participant U as User
    participant C as Client
    participant OR as OpenRouter
    participant BT as Baseten Provider
    participant M as Selected Model (:free)

    U->>C: Send request (select :free model)
    C->>OR: API call with model and routing
    Note over OR: provider_order = [baseten]<br/>allow_fallbacks = false
    OR->>BT: Route request
    BT->>M: Invoke model
    M-->>BT: Response
    BT-->>OR: Return result
    OR-->>C: Response
    C-->>U: Deliver output

    alt Provider unavailable
        Note over OR: No fallback due to allow_fallbacks=false
        OR-->>C: Error returned
        C-->>U: Surface error
    end
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

A rabbit taps the keys with glee,
Four free models hop in, neatly.
Baseten first, no fallback trails—
Straight paths, swift tales.
Config burrows tidy, crisp, and clean—
Requests now leap, precise and keen. 🐇✨

✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/add-new-ai-models

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 8bfbab1 and 7c5457d.

📒 Files selected for processing (1)
  • home-manager/modules/opencode/opencode.jsonc (1 hunks)

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
🧪 Early access (Sonnet 4.5): enabled

We are currently testing the Sonnet 4.5 model, which is expected to improve code review quality. However, this model may lead to increased noise levels in the review comments. Please disable the early access features if the noise level causes any inconvenience.

Note:

  • Public repositories are always opted into early access features.
  • You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file.

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

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @shunkakinoki, 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 significantly expands the range of AI models available by integrating several new providers and their specific models into the system's configuration. The update ensures that the platform can leverage a broader spectrum of AI capabilities, offering enhanced flexibility and choice for various applications.

Highlights

  • New AI Model Integrations: Introduced configurations for new AI models including "deepseek/deepseek-chat-v3.1:free", "moonshotai/kimi-k2:free", "openai/gpt-oss-120b:free", and "qwen/qwen3-coder:free" within the "openrouter" section.
  • Existing Model Configuration Update: The existing "moonshotai/kimi-k2" model configuration was updated to explicitly define "allow_fallbacks" as "false" and format the "provider.order" array for consistency.
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.

@shunkakinoki
shunkakinoki enabled auto-merge (squash) September 30, 2025 16:41

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

Copy link
Copy Markdown
Contributor

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 configurations for several new AI models. While the additions are functional, they introduce significant duplication in the configuration file. My review includes a suggestion to refactor the configuration to improve maintainability by removing this duplication.

@shunkakinoki
shunkakinoki merged commit 2bddb42 into main Sep 30, 2025
13 checks passed
@shunkakinoki
shunkakinoki deleted the feature/add-new-ai-models branch September 30, 2025 16:42
@coderabbitai coderabbitai Bot mentioned this pull request Nov 25, 2025
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.

1 participant