Skip to content

Conversation

@Sg312
Copy link
Contributor

@Sg312 Sg312 commented Dec 2, 2025

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
Copy link

vercel bot commented Dec 2, 2025

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

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
docs Skipped Skipped Dec 2, 2025 0:45am

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Dec 2, 2025

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

Filename Score Overview
apps/sim/executor/consts.ts 5/5 Changed default model from gpt-4o to claude-sonnet-4-5 in AGENT constants
apps/sim/blocks/blocks/agent.ts 5/5 Updated 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.tsx 5/5 Updated 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

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

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 staging Dec 2, 2025
9 checks passed
@waleedlatif1 waleedlatif1 deleted the improvement/agent-default-model branch December 3, 2025 03:24
Sign up for free to 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.

2 participants