From 610aa7cce0b25f247653f75f3c40589f8daf0df9 Mon Sep 17 00:00:00 2001 From: Saumya Date: Wed, 16 Jul 2025 10:20:18 +0530 Subject: [PATCH 1/6] fix frontend import error --- .../agents/pipedream/agent-pipedream-tools-manager.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/agents/pipedream/agent-pipedream-tools-manager.tsx b/frontend/src/components/agents/pipedream/agent-pipedream-tools-manager.tsx index 87f2a050..4fa8ba3d 100644 --- a/frontend/src/components/agents/pipedream/agent-pipedream-tools-manager.tsx +++ b/frontend/src/components/agents/pipedream/agent-pipedream-tools-manager.tsx @@ -46,7 +46,7 @@ export const AgentPipedreamToolsManager: React.FC { - const { data, isLoading, error, handleUpdateTools, isUpdating, refetch } = usePipedreamToolsData(agentId, profileId); + const { data, isLoading, error, isUpdating, refetch } = usePipedreamToolsData(agentId, profileId); const [localTools, setLocalTools] = useState>({}); const [hasChanges, setHasChanges] = useState(false); @@ -103,11 +103,8 @@ export const AgentPipedreamToolsManager: React.FC enabled) .map(([name]) => name); - - handleUpdateTools(enabledTools); setHasChanges(false); - - // Notify parent component of the update + if (onToolsUpdate) { onToolsUpdate(enabledTools); } From 6d9d6e25c92af80e12c2b7f0556a5b81fefff3a0 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 16 Jul 2025 12:18:24 +0000 Subject: [PATCH 2/6] Update model priority and order in model selection configuration Co-authored-by: markokraemer.mail --- .../thread/chat-input/_use-model-selection.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 d1ac4643..2ce164b4 100644 --- a/frontend/src/components/thread/chat-input/_use-model-selection.ts +++ b/frontend/src/components/thread/chat-input/_use-model-selection.ts @@ -52,9 +52,9 @@ export const MODELS = { }, // Premium/Paid tier models (require subscription) - 'sonnet-3.7': { + 'moonshotai/kimi-k2': { tier: 'premium', - priority: 99, + priority: 99, recommended: false, lowQuality: false }, @@ -64,13 +64,13 @@ export const MODELS = { recommended: false, lowQuality: false }, - 'google/gemini-2.5-pro': { + 'sonnet-3.7': { tier: 'premium', - priority: 97, + priority: 97, recommended: false, lowQuality: false }, - 'moonshotai/kimi-k2': { + 'google/gemini-2.5-pro': { tier: 'premium', priority: 96, recommended: false, From b419fcbc134bd6b851311e8f392bb60aeb2a6f4b Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 16 Jul 2025 12:27:38 +0000 Subject: [PATCH 3/6] Make all premium models free tier in model selection Co-authored-by: markokraemer.mail --- .../thread/chat-input/_use-model-selection.ts | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 2ce164b4..2e9788c4 100644 --- a/frontend/src/components/thread/chat-input/_use-model-selection.ts +++ b/frontend/src/components/thread/chat-input/_use-model-selection.ts @@ -51,57 +51,57 @@ export const MODELS = { lowQuality: false }, - // Premium/Paid tier models (require subscription) + // All models now available in free tier 'moonshotai/kimi-k2': { - tier: 'premium', + tier: 'free', priority: 99, recommended: false, lowQuality: false }, 'grok-4': { - tier: 'premium', + tier: 'free', priority: 98, recommended: false, lowQuality: false }, 'sonnet-3.7': { - tier: 'premium', + tier: 'free', priority: 97, recommended: false, lowQuality: false }, 'google/gemini-2.5-pro': { - tier: 'premium', + tier: 'free', priority: 96, recommended: false, lowQuality: false }, 'gpt-4.1': { - tier: 'premium', + tier: 'free', priority: 96, recommended: false, lowQuality: false }, 'sonnet-3.5': { - tier: 'premium', + tier: 'free', priority: 90, recommended: false, lowQuality: false }, 'gpt-4o': { - tier: 'premium', + tier: 'free', priority: 88, recommended: false, lowQuality: false }, 'gemini-2.5-flash:thinking': { - tier: 'premium', + tier: 'free', priority: 84, recommended: false, lowQuality: false }, 'deepseek/deepseek-chat-v3-0324': { - tier: 'premium', + tier: 'free', priority: 75, recommended: false, lowQuality: false From 037956f22be2c01ef7dc2989bc10ef7630ddcaf4 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 16 Jul 2025 12:36:51 +0000 Subject: [PATCH 4/6] Update model tiers and availability for free and paid users Co-authored-by: markokraemer.mail --- backend/utils/constants.py | 22 +++++++++++++++++-- .../thread/chat-input/_use-model-selection.ts | 14 ++++++------ 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/backend/utils/constants.py b/backend/utils/constants.py index 4a0ac589..b99c39e2 100644 --- a/backend/utils/constants.py +++ b/backend/utils/constants.py @@ -36,15 +36,33 @@ MODELS = { "tier_availability": ["free", "paid"] }, - # Paid tier only models + # Additional free tier models "openrouter/deepseek/deepseek-chat-v3-0324": { "aliases": ["deepseek/deepseek-chat-v3-0324"], "pricing": { "input_cost_per_million_tokens": 0.38, "output_cost_per_million_tokens": 0.89 }, - "tier_availability": ["paid"] + "tier_availability": ["free", "paid"] }, + "openrouter/moonshotai/kimi-k2": { + "aliases": ["moonshotai/kimi-k2"], + "pricing": { + "input_cost_per_million_tokens": 1.00, + "output_cost_per_million_tokens": 3.00 + }, + "tier_availability": ["free", "paid"] + }, + "xai/grok-4": { + "aliases": ["grok-4"], + "pricing": { + "input_cost_per_million_tokens": 5.00, + "output_cost_per_million_tokens": 15.00 + }, + "tier_availability": ["free", "paid"] + }, + + # Paid tier only models "openrouter/google/gemini-2.5-pro": { "aliases": ["google/gemini-2.5-pro"], "pricing": { 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 2e9788c4..50dfbe2c 100644 --- a/frontend/src/components/thread/chat-input/_use-model-selection.ts +++ b/frontend/src/components/thread/chat-input/_use-model-selection.ts @@ -51,7 +51,7 @@ export const MODELS = { lowQuality: false }, - // All models now available in free tier + // Premium/Paid tier models (require subscription) - except specific free models 'moonshotai/kimi-k2': { tier: 'free', priority: 99, @@ -65,37 +65,37 @@ export const MODELS = { lowQuality: false }, 'sonnet-3.7': { - tier: 'free', + tier: 'premium', priority: 97, recommended: false, lowQuality: false }, 'google/gemini-2.5-pro': { - tier: 'free', + tier: 'premium', priority: 96, recommended: false, lowQuality: false }, 'gpt-4.1': { - tier: 'free', + tier: 'premium', priority: 96, recommended: false, lowQuality: false }, 'sonnet-3.5': { - tier: 'free', + tier: 'premium', priority: 90, recommended: false, lowQuality: false }, 'gpt-4o': { - tier: 'free', + tier: 'premium', priority: 88, recommended: false, lowQuality: false }, 'gemini-2.5-flash:thinking': { - tier: 'free', + tier: 'premium', priority: 84, recommended: false, lowQuality: false From 24acc948b5c5a85cd27516cddaabf93d6e03b203 Mon Sep 17 00:00:00 2001 From: sharath <29162020+tnfssc@users.noreply.github.com> Date: Wed, 16 Jul 2025 13:15:32 +0000 Subject: [PATCH 5/6] fix(models): add grok and kimik2 to free --- backend/utils/constants.py | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/backend/utils/constants.py b/backend/utils/constants.py index b99c39e2..178c1987 100644 --- a/backend/utils/constants.py +++ b/backend/utils/constants.py @@ -35,8 +35,6 @@ MODELS = { }, "tier_availability": ["free", "paid"] }, - - # Additional free tier models "openrouter/deepseek/deepseek-chat-v3-0324": { "aliases": ["deepseek/deepseek-chat-v3-0324"], "pricing": { @@ -71,14 +69,6 @@ MODELS = { }, "tier_availability": ["paid"] }, - "openrouter/moonshotai/kimi-k2": { - "aliases": ["moonshotai/kimi-k2", "kimi-k2"], - "pricing": { - "input_cost_per_million_tokens": 1.00, - "output_cost_per_million_tokens": 3.00 - }, - "tier_availability": ["paid"] - }, "openai/gpt-4o": { "aliases": ["gpt-4o"], "pricing": { @@ -118,17 +108,7 @@ MODELS = { "output_cost_per_million_tokens": 15.00 }, "tier_availability": ["paid"] - }, - - "xai/grok-4": { - "aliases": ["grok-4", "x-ai/grok-4"], - "pricing": { - "input_cost_per_million_tokens": 5.00, - "output_cost_per_million_tokens": 15.00 - }, - "tier_availability": ["paid"] - }, - + }, } # Derived structures (auto-generated from MODELS) From d4b031d00e825542a79298ce0069772ef2403d93 Mon Sep 17 00:00:00 2001 From: sharath <29162020+tnfssc@users.noreply.github.com> Date: Wed, 16 Jul 2025 13:27:56 +0000 Subject: [PATCH 6/6] refactor(models): comment out old model configurations --- backend/utils/constants.py | 65 +++++++++---------- .../thread/chat-input/_use-model-selection.ts | 36 +++++----- .../thread/chat-input/model-selector.tsx | 4 +- 3 files changed, 52 insertions(+), 53 deletions(-) diff --git a/backend/utils/constants.py b/backend/utils/constants.py index 178c1987..93fe83b2 100644 --- a/backend/utils/constants.py +++ b/backend/utils/constants.py @@ -10,39 +10,38 @@ MODELS = { }, "tier_availability": ["free", "paid"] }, - - "openrouter/deepseek/deepseek-chat": { - "aliases": ["deepseek"], - "pricing": { - "input_cost_per_million_tokens": 0.38, - "output_cost_per_million_tokens": 0.89 - }, - "tier_availability": ["free", "paid"] - }, - "openrouter/qwen/qwen3-235b-a22b": { - "aliases": ["qwen3"], - "pricing": { - "input_cost_per_million_tokens": 0.13, - "output_cost_per_million_tokens": 0.60 - }, - "tier_availability": ["free", "paid"] - }, - "openrouter/google/gemini-2.5-flash-preview-05-20": { - "aliases": ["gemini-flash-2.5"], - "pricing": { - "input_cost_per_million_tokens": 0.15, - "output_cost_per_million_tokens": 0.60 - }, - "tier_availability": ["free", "paid"] - }, - "openrouter/deepseek/deepseek-chat-v3-0324": { - "aliases": ["deepseek/deepseek-chat-v3-0324"], - "pricing": { - "input_cost_per_million_tokens": 0.38, - "output_cost_per_million_tokens": 0.89 - }, - "tier_availability": ["free", "paid"] - }, + # "openrouter/deepseek/deepseek-chat": { + # "aliases": ["deepseek"], + # "pricing": { + # "input_cost_per_million_tokens": 0.38, + # "output_cost_per_million_tokens": 0.89 + # }, + # "tier_availability": ["free", "paid"] + # }, + # "openrouter/qwen/qwen3-235b-a22b": { + # "aliases": ["qwen3"], + # "pricing": { + # "input_cost_per_million_tokens": 0.13, + # "output_cost_per_million_tokens": 0.60 + # }, + # "tier_availability": ["free", "paid"] + # }, + # "openrouter/google/gemini-2.5-flash-preview-05-20": { + # "aliases": ["gemini-flash-2.5"], + # "pricing": { + # "input_cost_per_million_tokens": 0.15, + # "output_cost_per_million_tokens": 0.60 + # }, + # "tier_availability": ["free", "paid"] + # }, + # "openrouter/deepseek/deepseek-chat-v3-0324": { + # "aliases": ["deepseek/deepseek-chat-v3-0324"], + # "pricing": { + # "input_cost_per_million_tokens": 0.38, + # "output_cost_per_million_tokens": 0.89 + # }, + # "tier_availability": ["free", "paid"] + # }, "openrouter/moonshotai/kimi-k2": { "aliases": ["moonshotai/kimi-k2"], "pricing": { 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 50dfbe2c..70c83218 100644 --- a/frontend/src/components/thread/chat-input/_use-model-selection.ts +++ b/frontend/src/components/thread/chat-input/_use-model-selection.ts @@ -38,18 +38,18 @@ export const MODELS = { lowQuality: false }, - 'gemini-flash-2.5': { - tier: 'free', - priority: 70, - recommended: false, - lowQuality: false - }, - 'qwen3': { - tier: 'free', - priority: 60, - recommended: false, - lowQuality: false - }, + // 'gemini-flash-2.5': { + // tier: 'free', + // priority: 70, + // recommended: false, + // lowQuality: false + // }, + // 'qwen3': { + // tier: 'free', + // priority: 60, + // recommended: false, + // lowQuality: false + // }, // Premium/Paid tier models (require subscription) - except specific free models 'moonshotai/kimi-k2': { @@ -100,12 +100,12 @@ export const MODELS = { recommended: false, lowQuality: false }, - 'deepseek/deepseek-chat-v3-0324': { - tier: 'free', - priority: 75, - recommended: false, - lowQuality: false - }, + // 'deepseek/deepseek-chat-v3-0324': { + // tier: 'free', + // priority: 75, + // recommended: false, + // lowQuality: false + // }, }; // Helper to check if a user can access a model based on subscription status diff --git a/frontend/src/components/thread/chat-input/model-selector.tsx b/frontend/src/components/thread/chat-input/model-selector.tsx index 1ad2b0c0..2977b8a0 100644 --- a/frontend/src/components/thread/chat-input/model-selector.tsx +++ b/frontend/src/components/thread/chat-input/model-selector.tsx @@ -599,8 +599,8 @@ export const ModelSelector: React.FC = ({ {/* Premium Models Section */}
- - Premium Models + {/* */} + Additional Models
{/* Premium models container with paywall overlay */}