Skip to content

improvement(agent): switch default model to claude 4.5 sonnet - #2156

Merged
Sg312 merged 3 commits into
stagingfrom
improvement/agent-default-model
Dec 2, 2025
Merged

improvement(agent): switch default model to claude 4.5 sonnet#2156
Sg312 merged 3 commits into
stagingfrom
improvement/agent-default-model

Conversation

@Sg312

@Sg312Sg312 commented Dec 2, 2025

Copy link
Copy Markdown
Collaborator

Summary

Switches default model for agent block to claude 4.5 sonnet

Type of Change

  • Other: change

Testing

Manual

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercelBot commented Dec 2, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
ProjectDeploymentPreviewCommentsUpdated (UTC)
docsSkippedSkippedDec 2, 2025 0:45am

@greptile-apps

Copy link
Copy Markdown
Contributor

Greptile Overview

Greptile Summary

This PR switches the default AI model from gpt-4o to claude-sonnet-4-5 across the agent configuration system. The change updates:

  • Default model constant in executor configuration
  • Agent block's model defaultValue and fallback
  • ComboBox component's model selection logic and comments
  • Default parameter values: temperature (0.5→0.3), frequency penalty (1→0.3), reasoning effort (medium→low), and verbosity (medium→low) to better align with Claude's optimal settings

Confidence Score: 5/5

  • This PR is safe to merge with no issues found
  • All changes are straightforward configuration updates that swap model identifiers and adjust default parameters. The model claude-sonnet-4-5 exists in the provider definitions and supports temperature (max: 1), making the new 0.3 default valid. No logic changes or potential runtime errors introduced.
  • No files require special attention

Important Files Changed

File Analysis

FilenameScoreOverview
apps/sim/executor/consts.ts5/5Changed default model from gpt-4o to claude-sonnet-4-5 in AGENT constants
apps/sim/blocks/blocks/agent.ts5/5Updated default model to claude-sonnet-4-5, added explicit defaultValue, and adjusted temperature/frequency penalty defaults from 0.5/1 to 0.3/0.3, reasoning effort and verbosity from medium to low
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/combobox/combobox.tsx5/5Updated default model constant and comments from gpt-4o to claude-sonnet-4-5, renamed variable from gpt4o to claudeSonnet45

Sequence Diagram

sequenceDiagram
participant User
participant ComboBox
participant AgentBlock
participant Executor
participant Provider
Note over ComboBox,Provider: Model Selection & Configuration Flow
User->>ComboBox: Open Agent Block
ComboBox->>ComboBox: Check DEFAULT_MODEL constant
Note right of ComboBox: Now: claude-sonnet-4-5<br/>(was: gpt-4o)
ComboBox->>ComboBox: Find claude-sonnet-4-5 in options
ComboBox->>AgentBlock: Set defaultValue
User->>AgentBlock: Configure Agent
AgentBlock->>AgentBlock: Apply default values
Note right of AgentBlock: temperature: 0.3<br/>frequency_penalty: 0.3<br/>reasoningEffort: low<br/>verbosity: low
User->>AgentBlock: Execute Agent
AgentBlock->>Executor: Send model config
Executor->>Executor: Check model param
Note right of Executor: Fallback to AGENT.DEFAULT_MODEL<br/>claude-sonnet-4-5
Executor->>Provider: Request with claude-sonnet-4-5
Provider->>Provider: Validate model exists
Note right of Provider: Model found in<br/>anthropic provider
Provider-->>Executor: Response
Executor-->>AgentBlock: Agent output
AgentBlock-->>User: Result
Loading

@greptile-appsgreptile-appsBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@Sg312
Sg312 merged commit 0ae7eb1 into stagingDec 2, 2025
9 checks passed
@waleedlatif1
waleedlatif1 deleted the improvement/agent-default-model branch December 3, 2025 03:24
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@Sg312