From 58b118a05d1790eac630506717c4876220758c63 Mon Sep 17 00:00:00 2001 From: sharath <29162020+tnfssc@users.noreply.github.com> Date: Thu, 3 Jul 2025 17:14:48 +0000 Subject: [PATCH 1/2] feat(models): update free tier model to claude sonnet 4 --- backend/utils/constants.py | 1 + .../components/thread/chat-input/_use-model-selection.ts | 8 +++++--- .../src/components/thread/chat-input/message-input.tsx | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/backend/utils/constants.py b/backend/utils/constants.py index 9ba10423..3621db77 100644 --- a/backend/utils/constants.py +++ b/backend/utils/constants.py @@ -3,6 +3,7 @@ MODEL_ACCESS_TIERS = { "openrouter/deepseek/deepseek-chat", "openrouter/qwen/qwen3-235b-a22b", "openrouter/google/gemini-2.5-flash-preview-05-20", + "anthropic/claude-sonnet-4-20250514", ], "tier_2_20": [ "openrouter/deepseek/deepseek-chat", diff --git a/frontend/src/components/thread/chat-input/_use-model-selection.ts b/frontend/src/components/thread/chat-input/_use-model-selection.ts index 3c219f8a..a44625f1 100644 --- a/frontend/src/components/thread/chat-input/_use-model-selection.ts +++ b/frontend/src/components/thread/chat-input/_use-model-selection.ts @@ -5,10 +5,11 @@ import { useState, useEffect, useMemo } from 'react'; import { isLocalMode } from '@/lib/config'; import { useAvailableModels } from '@/hooks/react-query/subscriptions/use-model'; -export const STORAGE_KEY_MODEL = 'suna-preferred-model'; +export const STORAGE_KEY_MODEL = 'suna-preferred-model-v2'; export const STORAGE_KEY_CUSTOM_MODELS = 'customModels'; -export const DEFAULT_FREE_MODEL_ID = 'deepseek'; export const DEFAULT_PREMIUM_MODEL_ID = 'claude-sonnet-4'; +// export const DEFAULT_FREE_MODEL_ID = 'deepseek'; +export const DEFAULT_FREE_MODEL_ID = 'claude-sonnet-4'; export type SubscriptionStatus = 'no_subscription' | 'active'; @@ -31,7 +32,7 @@ export interface CustomModel { export const MODELS = { // Premium high-priority models 'claude-sonnet-4': { - tier: 'premium', + tier: 'free', priority: 100, recommended: true, lowQuality: false, @@ -288,6 +289,7 @@ export const useModelSelection = () => { // Get model data from our central MODELS constant const modelData = MODELS[shortName] || {}; + console.log({model, modelData}) const isPremium = model?.requires_subscription || modelData.tier === 'premium' || false; return { diff --git a/frontend/src/components/thread/chat-input/message-input.tsx b/frontend/src/components/thread/chat-input/message-input.tsx index dfb31b24..1d84e0f8 100644 --- a/frontend/src/components/thread/chat-input/message-input.tsx +++ b/frontend/src/components/thread/chat-input/message-input.tsx @@ -165,10 +165,10 @@ export const MessageInput = forwardRef( -

setBillingModalOpen(true)}>Upgrade for full performance

+

setBillingModalOpen(true)}>Upgrade for more usage

-

The free tier is severely limited by inferior models; upgrade to experience the true full Suna experience.

+

The free tier is severely limited by the amount of usage. Upgrade to experience the full power of Suna.

From 71307d7d8c489a623fb499fca9c0940f79da0692 Mon Sep 17 00:00:00 2001 From: Sharath <29162020+tnfssc@users.noreply.github.com> Date: Thu, 3 Jul 2025 22:45:46 +0530 Subject: [PATCH 2/2] Update frontend/src/components/thread/chat-input/_use-model-selection.ts --- .../src/components/thread/chat-input/_use-model-selection.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/src/components/thread/chat-input/_use-model-selection.ts b/frontend/src/components/thread/chat-input/_use-model-selection.ts index a44625f1..7d06cf8e 100644 --- a/frontend/src/components/thread/chat-input/_use-model-selection.ts +++ b/frontend/src/components/thread/chat-input/_use-model-selection.ts @@ -289,7 +289,6 @@ export const useModelSelection = () => { // Get model data from our central MODELS constant const modelData = MODELS[shortName] || {}; - console.log({model, modelData}) const isPremium = model?.requires_subscription || modelData.tier === 'premium' || false; return {