Add Claude Opus 4.5 (#7648)
This commit is contained in:
1 parent
41ebe7c9d1
commit
a017f3dfd3
15 files changed
+69
-20
No files matched your search
@@ -2,6 +2,7 @@ import React from "react"
|
||||
import Announcement from "@/components/chat/Announcement"
|
||||
import CliInstallBanner, { CURRENT_CLI_BANNER_VERSION } from "@/components/common/CliInstallBanner"
|
||||
import InfoBanner, { CURRENT_INFO_BANNER_VERSION } from "@/components/common/InfoBanner"
|
||||
import NewModelBanner, { CURRENT_MODEL_BANNER_VERSION } from "@/components/common/NewModelBanner"
|
||||
import HistoryPreview from "@/components/history/HistoryPreview"
|
||||
import HomeHeader from "@/components/welcome/HomeHeader"
|
||||
import { SuggestedTasks } from "@/components/welcome/SuggestedTasks"
|
||||
@@ -22,10 +23,10 @@ export const WelcomeSection: React.FC<WelcomeSectionProps> = ({
|
||||
taskHistory,
|
||||
shouldShowQuickWins,
|
||||
}) => {
|
||||
const { lastDismissedInfoBannerVersion, lastDismissedCliBannerVersion } = useExtensionState()
|
||||
const { lastDismissedInfoBannerVersion, lastDismissedCliBannerVersion, lastDismissedModelBannerVersion } = useExtensionState()
|
||||
|
||||
const shouldShowInfoBanner = lastDismissedInfoBannerVersion < CURRENT_INFO_BANNER_VERSION
|
||||
// const shouldShowNewModelBanner = lastDismissedModelBannerVersion < CURRENT_MODEL_BANNER_VERSION
|
||||
const shouldShowNewModelBanner = lastDismissedModelBannerVersion < CURRENT_MODEL_BANNER_VERSION
|
||||
|
||||
// Show CLI banner if not dismissed and platform is VSCode (not JetBrains/standalone)
|
||||
const shouldShowCliBanner =
|
||||
@@ -38,7 +39,7 @@ export const WelcomeSection: React.FC<WelcomeSectionProps> = ({
|
||||
<div className="overflow-y-auto flex flex-col pb-2.5">
|
||||
{shouldShowInfoBanner && <InfoBanner />}
|
||||
{showAnnouncement && <Announcement hideAnnouncement={hideAnnouncement} version={version} />}
|
||||
{/* {shouldShowNewModelBanner && <NewModelBanner />} */}
|
||||
{shouldShowNewModelBanner && <NewModelBanner />}
|
||||
{shouldShowCliBanner && <CliInstallBanner />}
|
||||
<HomeHeader shouldShowQuickWins={shouldShowQuickWins} />
|
||||
{!shouldShowQuickWins && taskHistory.length > 0 && <HistoryPreview showHistoryView={showHistoryView} />}
|
||||
|
||||
@@ -9,7 +9,7 @@ import { AccountServiceClient, StateServiceClient } from "@/services/grpc-client
|
||||
import { getAsVar, VSC_INACTIVE_SELECTION_BACKGROUND } from "@/utils/vscStyles"
|
||||
import { useApiConfigurationHandlers } from "../settings/utils/useApiConfigurationHandlers"
|
||||
|
||||
export const CURRENT_MODEL_BANNER_VERSION = 2
|
||||
export const CURRENT_MODEL_BANNER_VERSION = 3
|
||||
|
||||
export const NewModelBanner: React.FC = () => {
|
||||
const { clineUser } = useClineAuth()
|
||||
@@ -31,7 +31,7 @@ export const NewModelBanner: React.FC = () => {
|
||||
}, [])
|
||||
|
||||
const setNewModel = () => {
|
||||
const modelId = "anthropic/claude-haiku-4.5"
|
||||
const modelId = "anthropic/claude-opus-4.5"
|
||||
// set both plan and act modes to use new model
|
||||
handleFieldsChange({
|
||||
planModeOpenRouterModelId: modelId,
|
||||
@@ -74,10 +74,10 @@ export const NewModelBanner: React.FC = () => {
|
||||
}}>
|
||||
<h4 className="m-0 flex items-center gap-2">
|
||||
<Megaphone className="w-4 h-4" />
|
||||
Claude Haiku 4.5
|
||||
Claude Opus 4.5
|
||||
</h4>
|
||||
<p className="m-0">
|
||||
Anthropic's fastest model with frontier-level coding intelligence at a fraction of the cost.{" "}
|
||||
Anthropic's latest model with SOTA performance at 3x lower cost than Opus 4.1.{" "}
|
||||
<span className="text-link cursor-pointer">{user ? "Try new model" : "Try with Cline account"} →</span>
|
||||
</p>
|
||||
|
||||
|
||||
@@ -52,21 +52,15 @@ const featuredModels = [
|
||||
label: "Best",
|
||||
},
|
||||
{
|
||||
id: "google/gemini-3-pro-preview",
|
||||
description: "Google's latest reasoning model with 1M context window",
|
||||
id: "anthropic/claude-opus-4.5",
|
||||
description: "SOTA performance on coding at 3x lower cost than Opus 4.1",
|
||||
label: "New",
|
||||
},
|
||||
{
|
||||
id: "openai/gpt-5.1",
|
||||
description: "Latest flagship model from OpenAI with enhanced coding capabilities",
|
||||
id: "google/gemini-3-pro-preview",
|
||||
description: "Google's latest reasoning model with 1M context window",
|
||||
label: "Trending",
|
||||
},
|
||||
{
|
||||
id: "minimax/minimax-m2",
|
||||
description: "Compact, high-efficiency model optimized for coding and agentic workflows",
|
||||
label: "Free",
|
||||
isFree: true,
|
||||
},
|
||||
{
|
||||
id: "x-ai/grok-code-fast-1",
|
||||
description: "Advanced model with 262K context for complex coding",
|
||||
@@ -269,6 +263,7 @@ const OpenRouterModelPicker: React.FC<OpenRouterModelPickerProps> = ({ isPopup,
|
||||
selectedModelId?.toLowerCase().includes("claude-sonnet-4") ||
|
||||
selectedModelId?.toLowerCase().includes("claude-opus-4.1") ||
|
||||
selectedModelId?.toLowerCase().includes("claude-opus-4") ||
|
||||
selectedModelId?.toLowerCase().includes("claude-opus-4.5") ||
|
||||
selectedModelId?.toLowerCase().includes("claude-3-7-sonnet") ||
|
||||
selectedModelId?.toLowerCase().includes("claude-3.7-sonnet") ||
|
||||
selectedModelId?.toLowerCase().includes("claude-3.7-sonnet:thinking")
|
||||
|
||||
@@ -15,6 +15,7 @@ export const SUPPORTED_ANTHROPIC_THINKING_MODELS = [
|
||||
"claude-3-7-sonnet-20250219",
|
||||
"claude-sonnet-4-20250514",
|
||||
`claude-sonnet-4-20250514${CLAUDE_SONNET_1M_SUFFIX}`,
|
||||
"claude-opus-4-5-20251101",
|
||||
"claude-opus-4-20250514",
|
||||
"claude-opus-4-1-20250805",
|
||||
"claude-sonnet-4-5-20250929",
|
||||
|
||||
@@ -18,6 +18,7 @@ const CLAUDE_MODELS = [
|
||||
"anthropic.claude-sonnet-4-5-20250929-v1:0",
|
||||
`anthropic.claude-sonnet-4-20250514-v1:0${CLAUDE_SONNET_1M_SUFFIX}`,
|
||||
`anthropic.claude-sonnet-4-5-20250929-v1:0${CLAUDE_SONNET_1M_SUFFIX}`,
|
||||
"anthropic.claude-opus-4-5-20251101-v1:0",
|
||||
"anthropic.claude-opus-4-1-20250805-v1:0",
|
||||
"anthropic.claude-opus-4-20250514-v1:0",
|
||||
"anthropic.claude-haiku-4-5-20251001-v1:0",
|
||||
|
||||
@@ -26,6 +26,7 @@ const SUPPORTED_THINKING_MODELS = [
|
||||
"claude-sonnet-4-5@20250929",
|
||||
"claude-3-7-sonnet@20250219",
|
||||
"claude-sonnet-4@20250514",
|
||||
"claude-opus-4-5@20251101",
|
||||
"claude-opus-4@20250514",
|
||||
"claude-opus-4-1@20250805",
|
||||
"gemini-2.5-flash",
|
||||
|
||||
Reference in new issue
Block a user