Add gemini-2.5-pro tag, you can use free gemini-2.5-pro#6570
Add gemini-2.5-pro tag, you can use free gemini-2.5-pro#6570Leizhenpeng merged 2 commits intoChatGPTNextWeb:mainfrom zhang-zhonggui:main
Conversation
添加免费的Gemini 2.5 Pro进行使用
添加gemini-2.5-pro,可以免费使用Google Gemini
WalkthroughA new Gemini model identifier, "gemini-2.5-pro", has been added to the Changes
Possibly related PRs
Suggested reviewers
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
app/constant.tsOops! Something went wrong! :( ESLint: 8.49.0 TypeError: Cannot read properties of undefined (reading 'loc') ✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed 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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
app/constant.ts (1)
557-559: Add matching KnowledgeCutOffDate entry for the new model
KnowledgeCutOffDate(lines 427-462) lacks an entry forgemini-2.5-pro, so the UI will fall back to the default2021-09. Adding an explicit date keeps behaviour consistent with other Gemini variants and prevents surprising regressions if the default ever changes.@@ "deepseek-coder": "2024-07", + "gemini-2.5-pro": "2023-12", };Please confirm the correct cut-off date with product docs and update accordingly.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
app/constant.ts(1 hunks)
🧰 Additional context used
🧠 Learnings (1)
app/constant.ts (1)
Learnt from: Noctiro
PR: ChatGPTNextWeb/NextChat#6139
File: app/store/access.ts:251-258
Timestamp: 2025-02-04T03:46:50.895Z
Learning: The getModelProvider function in app/utils/model.ts uses safe string operations to parse model names with optional provider (format: modelName@providerId), making explicit error handling unnecessary as it always returns a valid [model, provider] tuple where provider can be undefined.
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
Add gemini-2.5-pro tag, you can use free gemini-2.5-pro
📝 补充信息 | Additional Information
Summary by CodeRabbit