Skip to content

Add support for deepseek-r1-0528 model#168

Merged
AnthonyRonning merged 3 commits intomasterfrom
claude/issue-167-20250730-1554
Aug 1, 2025
Merged

Add support for deepseek-r1-0528 model#168
AnthonyRonning merged 3 commits intomasterfrom
claude/issue-167-20250730-1554

Conversation

@AnthonyRonning
Copy link
Copy Markdown
Contributor

@AnthonyRonning AnthonyRonning commented Jul 30, 2025

Add support for the new deepseek-r1-0528 model with 130k context window.

  • Added deepseek-r1-0528 to MODEL_CONFIG with 130k token limit
  • Added to all pricing plan tiers (excluded from Free/Starter, included in Pro/Max/Team)
  • Following same pattern as existing deepseek-r1-70b model

Resolves #167

Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Added support for the "DeepSeek R1 0528 671B" AI model, available exclusively for Pro, Max, and Team plan users.
    • Updated pricing plan details to reflect the availability of the new model across different subscription tiers.
    • Enhanced model selector to display multiple badges per model, including a new "Beta" badge style.
    • Increased dropdown menu width for improved usability.
  • Style

    • Minor formatting adjustments in error handling code; no changes to functionality.

- Added deepseek-r1-0528 to MODEL_CONFIG with 130k token limit
- Added to all pricing plan tiers (excluded from Free/Starter, included in Pro/Max/Team)
- Following same pattern as existing deepseek-r1-70b model

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Anthony <AnthonyRonning@users.noreply.github.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jul 30, 2025

Walkthrough

A new DeepSeek model ("deepseek-r1-0528") with a 130,000 token limit was added to the model configuration and pricing plan feature lists. The model is marked as requiring a Pro subscription. Additionally, minor formatting changes were made to an error handler in the chat route, without affecting functionality.

Changes

Cohort / File(s) Change Summary
Model Configuration Update
frontend/src/components/ModelSelector.tsx
Updated ModelCfg type to support multiple badges; added new model entry for "deepseek-r1-0528" with badges ["Pro", "Beta"], Pro requirement, and token limit; adjusted badge rendering and dropdown width.
Pricing Plan Feature Update
frontend/src/config/pricingConfig.tsx
Added "DeepSeek R1 0528 671B" as a feature to all pricing plans, marked included for Pro, Max, and Team tiers, excluded for Free and Starter tiers.
Error Handler Formatting
frontend/src/routes/_auth.chat.$chatId.tsx
Reformatted the error handling callback for user prompt processing; logic remains unchanged.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant UI (ModelSelector)
    participant PricingConfig

    User->>UI (ModelSelector): Request available models
    UI (ModelSelector)->>UI (ModelSelector): Show "DeepSeek R1 0528" if Pro
    User->>PricingConfig: View plan features
    PricingConfig->>User: Show "DeepSeek R1 0528" availability by plan
Loading

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Assessment against linked issues

Objective Addressed Explanation
Add support for deepseek-r1-0528 model with 130k context, as an addition, matching previous deepseek model behavior (#167)

Assessment against linked issues: Out-of-scope changes

No out-of-scope changes found.

Possibly related PRs

Poem

A new DeepSeek hops into view,
With one hundred thirty thousand tokens to chew!
Pro plans rejoice, the badge shines bright,
In configs and pricing, all set right.
The code stays neat, the change is small—
Another model joins the warren’s hall! 🐇✨


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4dd6ce4 and 97547f2.

📒 Files selected for processing (1)
  • frontend/src/components/ModelSelector.tsx (4 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • frontend/src/components/ModelSelector.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: build-linux
  • GitHub Check: build-macos (universal-apple-darwin)
  • GitHub Check: build-ios
  • GitHub Check: browseruse-tests
  • GitHub Check: Cloudflare Pages
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch claude/issue-167-20250730-1554

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

Greptile Summary

This PR adds support for the DeepSeek R1 0528 model, a new AI model with a 130k context window. The implementation follows the established architectural pattern used for adding AI models to the Maple platform.

The core change is in ModelSelector.tsx where the new model is added to the MODEL_CONFIG object with a displayName of "DeepSeek R1 0528", a "Pro" badge indicating it requires a paid subscription, requiresPro: true for access control, and a tokenLimit of 130,000 tokens (double the existing deepseek-r1-70b model's 64k limit).

The model is then integrated into the pricing tier system in pricingConfig.tsx by adding "DeepSeek R1 0528" as a feature across all pricing plans. It follows the same access pattern as the existing DeepSeek R1 70B model - excluded from Free and Starter tiers but included in Pro, Max, and Team tiers. This maintains the business model of offering advanced AI models as premium features.

A minor formatting improvement was also made to the error handling in the chat component, reformatting a catch block callback from single-line to multi-line for better readability without changing functionality.

The changes integrate seamlessly with the existing model selection system, pricing infrastructure, and access control mechanisms without requiring any database migrations or breaking changes.

Confidence score: 5/5

  • This PR is extremely safe to merge with no apparent issues or risks
  • The implementation follows established patterns perfectly, uses consistent naming, and maintains proper access controls across all affected files
  • No files need additional attention - all changes are straightforward and follow existing conventions

3 files reviewed, no comments

Edit Code Review Bot Settings | Greptile

@AnthonyRonning
Copy link
Copy Markdown
Contributor Author

@claude let's add 671B to the end of the name. so DeepSeek R1 0528 671B

@claude
Copy link
Copy Markdown
Contributor

claude Bot commented Jul 31, 2025

Claude finished @AnthonyRonning's task —— View job


✅ Task Complete

I've successfully updated the DeepSeek model name to include "671B" as requested.

Changes Made:

  • ModelSelector.tsx: Updated displayName from "DeepSeek R1 0528" to "DeepSeek R1 0528 671B"
  • pricingConfig.tsx: Updated all 5 pricing plan references from "DeepSeek R1 0528" to "DeepSeek R1 0528 671B"

Todo List:

  • Read current model configuration files
  • Update model display name in ModelSelector.tsx
  • Update model name in pricingConfig.tsx
  • Run formatting, linting and build commands
  • Commit and push changes

All formatting, linting, and build checks passed successfully. The changes have been committed and pushed to the PR branch.


- Updated displayName in ModelSelector.tsx from 'DeepSeek R1 0528' to 'DeepSeek R1 0528 671B'
- Updated all pricing config references to match the new model name

Co-authored-by: Anthony <AnthonyRonning@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

Greptile Summary

This PR adds support for the new DeepSeek R1 0528 671B model to the Maple AI chat application. The changes integrate a new AI model variant that offers significantly enhanced capabilities with a 130k token context window (compared to 64k for the existing deepseek-r1-70b model) and 671 billion parameters.

The implementation follows the established architectural pattern for premium models in the codebase. In ModelSelector.tsx, the new model is configured with requiresPro: true and a 130k token limit, ensuring it's restricted to paid subscription tiers. The pricingConfig.tsx file is updated across all pricing plans to maintain consistency - the model is explicitly excluded from Free and Starter tiers while being included as a feature for Pro, Max, and Team plans.

The naming convention aligns with existing models by including the parameter count ('671B') in the display name, helping users understand the model's scale and capabilities. This change expands the AI model offerings available to premium users while maintaining the existing business model structure that gates advanced features behind paid subscriptions.

Confidence score: 5/5

  • This PR is extremely safe to merge with no apparent issues or risks.
  • The implementation perfectly follows established patterns, maintains consistency across all configuration files, and includes proper access controls for the premium model.
  • No files need additional attention - both changed files are properly updated and consistent with each other.

2 files reviewed, no comments

Edit Code Review Bot Settings | Greptile

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Jul 31, 2025

Deploying maple with  Cloudflare Pages  Cloudflare Pages

Latest commit: 97547f2
Status: ✅  Deploy successful!
Preview URL: https://1a81c690.maple-ca8.pages.dev
Branch Preview URL: https://claude-issue-167-20250730-15.maple-ca8.pages.dev

View logs

…epSeek R1 671B

- Changed badge property from string to string array for all models
- Added Beta tag to DeepSeek R1 0528 671B model alongside Pro tag
- Added yellow-orange gradient styling for Beta badges
- Increased model selector dropdown width from w-64 to w-72

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

Greptile Summary

This PR adds support for DeepSeek's new R1 0528 model, a 671B parameter AI model with a 130k context window. The change introduces the model to the MODEL_CONFIG with appropriate configuration and makes it available to Pro, Max, and Team plan users while excluding it from Free and Starter tiers.

The implementation required a significant refactoring of the badge system in the ModelSelector component. Previously, models could only display a single badge, but the new model needs both 'Pro' (indicating tier requirement) and 'Beta' (indicating experimental status) badges. This led to changing the type definition from a single badge property to a badges array and updating the rendering logic accordingly.

The change follows the established pattern in the codebase where premium models are restricted to paying customers. The new model is positioned as a more powerful alternative to the existing deepseek-r1-70b model, offering double the context window (130k vs 64k tokens). The dropdown width was also increased from w-64 to w-72 to accommodate the visual space needed for multiple badges.

This enhancement integrates seamlessly with the existing pricing and model selection infrastructure, maintaining consistency with how other premium models are handled throughout the application.

Confidence score: 4/5

• This PR appears safe to merge with well-structured changes that follow existing patterns
• The refactoring is clean and the new model configuration follows established conventions, though the badge system change is significant
• The ModelSelector.tsx file should be tested thoroughly to ensure the badge refactoring doesn't break existing model displays

1 file reviewed, no comments

Edit Code Review Bot Settings | Greptile

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.

Support deepseek-r1-0528

1 participant