Add gpt-4.1 family & gpt-4.5-preview support#6450
Add gpt-4.1 family & gpt-4.5-preview support#6450Leizhenpeng merged 2 commits intoChatGPTNextWeb:mainfrom
Conversation
|
@stephen-zeng is attempting to deploy a commit to the NextChat Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThis change updates the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant App
participant Constants
User ->> App: Request model info
App ->> Constants: Lookup model in openaiModels
Constants -->> App: Return model info (includes new GPT-4.1 and GPT-4.5-preview variants)
App ->> Constants: Check KnowledgeCutOffDate for model
Constants -->> App: Return cutoff date for new GPT variants
App ->> Constants: Match model with VISION_MODEL_REGEXES
Constants -->> App: Identify GPT-4.1 variants as vision-capable
App -->> User: Respond with updated model capabilities
Possibly related PRs
Suggested reviewers
Poem
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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 (
|
|
解决Issue #6449 |
Solve Issue #6449 |
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
添加了gpt-4.1模型家族和gpt-4.5预览模型的支持,更新了判断视觉模型的正则表达式,添加了gpt-4.1家族和gpt-4.5-preview的知识截止时间
📝 补充信息 | Additional Information
Summary by CodeRabbit