CLAUDE SONNET 4.

This commit is contained in:
marko-kraemer 2025-05-22 21:18:39 +02:00
parent 70cd8bc252
commit f9afb09ffe
2 changed files with 18 additions and 10 deletions

View File

@ -13,6 +13,7 @@ MODEL_ACCESS_TIERS = {
"openrouter/google/gemini-2.5-flash-preview-05-20", # Added
# "openai/gpt-4",
"anthropic/claude-3-7-sonnet-latest",
"anthropic/claude-sonnet-4-20250514",
# "openai/gpt-4.1-2025-04-14",
# "openrouter/deepseek/deepseek-r1",
"openrouter/qwen/qwen3-235b-a22b",
@ -26,6 +27,7 @@ MODEL_ACCESS_TIERS = {
"openrouter/google/gemini-2.5-flash-preview-05-20", # Added
# "openai/gpt-4",
"anthropic/claude-3-7-sonnet-latest",
"anthropic/claude-sonnet-4-20250514",
# "openai/gpt-4.1-2025-04-14",
# "openrouter/deepseek/deepseek-r1",
"openrouter/qwen/qwen3-235b-a22b",
@ -39,6 +41,7 @@ MODEL_ACCESS_TIERS = {
"openrouter/google/gemini-2.5-flash-preview-05-20", # Added
# "openai/gpt-4",
"anthropic/claude-3-7-sonnet-latest",
"anthropic/claude-sonnet-4-20250514",
# "openai/gpt-4.1-2025-04-14",
# "openrouter/deepseek/deepseek-r1",
"openrouter/qwen/qwen3-235b-a22b",
@ -52,6 +55,7 @@ MODEL_ACCESS_TIERS = {
"openrouter/google/gemini-2.5-flash-preview-05-20", # Added
# "openai/gpt-4",
"anthropic/claude-3-7-sonnet-latest",
"anthropic/claude-sonnet-4-20250514",
# "openai/gpt-4.1-2025-04-14",
# "openrouter/deepseek/deepseek-r1",
"openrouter/qwen/qwen3-235b-a22b",
@ -65,6 +69,7 @@ MODEL_ACCESS_TIERS = {
"openrouter/google/gemini-2.5-flash-preview-05-20", # Added
# "openai/gpt-4",
"anthropic/claude-3-7-sonnet-latest",
"anthropic/claude-sonnet-4-20250514",
# "openai/gpt-4.1-2025-04-14",
# "openrouter/deepseek/deepseek-r1",
"openrouter/qwen/qwen3-235b-a22b",
@ -78,6 +83,7 @@ MODEL_ACCESS_TIERS = {
"openrouter/google/gemini-2.5-flash-preview-05-20", # Added
# "openai/gpt-4",
"anthropic/claude-3-7-sonnet-latest",
"anthropic/claude-sonnet-4-20250514",
# "openai/gpt-4.1-2025-04-14",
# "openrouter/deepseek/deepseek-r1",
"openrouter/qwen/qwen3-235b-a22b",
@ -91,6 +97,7 @@ MODEL_ACCESS_TIERS = {
"openrouter/google/gemini-2.5-flash-preview-05-20", # Added
# "openai/gpt-4",
"anthropic/claude-3-7-sonnet-latest",
"anthropic/claude-sonnet-4-20250514",
# "openai/gpt-4.1-2025-04-14",
# "openrouter/deepseek/deepseek-r1",
"openrouter/qwen/qwen3-235b-a22b",
@ -101,6 +108,7 @@ MODEL_NAME_ALIASES = {
"sonnet-3.7": "anthropic/claude-3-7-sonnet-latest",
"sonnet-3.5": "anthropic/claude-3-5-sonnet-latest",
"haiku-3.5": "anthropic/claude-3-5-haiku-latest",
"claude-sonnet-4": "anthropic/claude-sonnet-4-20250514",
# "gpt-4.1": "openai/gpt-4.1-2025-04-14", # Commented out in constants.py
"gpt-4o": "openai/gpt-4o",
"gpt-4.1": "openai/gpt-4.1",

View File

@ -7,8 +7,8 @@ import { useAvailableModels } from '@/hooks/react-query/subscriptions/use-model'
export const STORAGE_KEY_MODEL = 'suna-preferred-model';
export const STORAGE_KEY_CUSTOM_MODELS = 'customModels';
export const DEFAULT_FREE_MODEL_ID = 'qwen3';
export const DEFAULT_PREMIUM_MODEL_ID = 'sonnet-3.7';
export const DEFAULT_FREE_MODEL_ID = 'gemini-flash-2.5';
export const DEFAULT_PREMIUM_MODEL_ID = 'claude-sonnet-4';
export type SubscriptionStatus = 'no_subscription' | 'active';
@ -30,23 +30,23 @@ export interface CustomModel {
// SINGLE SOURCE OF TRUTH for all model data
export const MODELS = {
// Premium high-priority models
'sonnet-3.7': {
'claude-sonnet-4': {
tier: 'premium',
priority: 100,
recommended: true,
lowQuality: false,
description: 'Claude 3.7 Sonnet - Anthropic\'s powerful general-purpose AI assistant'
description: 'Claude Sonnet 4 - Anthropic\'s latest and most advanced AI assistant'
},
'claude-3.7': {
'claude-sonnet-3.7': {
tier: 'premium',
priority: 100,
priority: 95,
recommended: true,
lowQuality: false,
description: 'Claude 3.7 - Anthropic\'s most powerful AI assistant'
},
'claude-3.7-reasoning': {
'claude-sonnet-3.7-reasoning': {
tier: 'premium',
priority: 100,
priority: 95,
recommended: true,
lowQuality: false,
description: 'Claude 3.7 with enhanced reasoning capabilities'
@ -269,14 +269,14 @@ export const useModelSelection = () => {
models = [
{
id: DEFAULT_FREE_MODEL_ID,
label: 'Qwen3',
label: 'Gemini Flash 2.5',
requiresSubscription: false,
description: MODELS[DEFAULT_FREE_MODEL_ID]?.description || MODEL_TIERS.free.baseDescription,
priority: MODELS[DEFAULT_FREE_MODEL_ID]?.priority || 50
},
{
id: DEFAULT_PREMIUM_MODEL_ID,
label: 'Sonnet 3.7',
label: 'Claude Sonnet 4',
requiresSubscription: true,
description: MODELS[DEFAULT_PREMIUM_MODEL_ID]?.description || MODEL_TIERS.premium.baseDescription,
priority: MODELS[DEFAULT_PREMIUM_MODEL_ID]?.priority || 100