Skip to content

fix(gpt-5): updated pricing#897

Merged
waleedlatif1 merged 1 commit intostagingfrom
fix/gpt-5
Aug 7, 2025
Merged

fix(gpt-5): updated pricing#897
waleedlatif1 merged 1 commit intostagingfrom
fix/gpt-5

Conversation

@waleedlatif1
Copy link
Collaborator

Summary

updated pricing

Fixes #(issue)

Type of Change

  • Bug fix

Testing

NA

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 Aug 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sim 🔄 Building (Inspect) Visit Preview 💬 Add feedback Aug 7, 2025 5:39pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
docs ⬜️ Skipped (Inspect) Aug 7, 2025 5:39pm

@waleedlatif1 waleedlatif1 merged commit ed7d7a7 into staging Aug 7, 2025
3 checks passed
@waleedlatif1 waleedlatif1 deleted the fix/gpt-5 branch August 7, 2025 17:39
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.

Greptile Summary

This PR updates the pricing information for all GPT-5 model variants in the model pricing configuration. The changes affect both OpenAI and Azure GPT-5 models (gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-chat-latest) with substantial cost reductions across the board. For example, the standard gpt-5 model sees input token costs drop from $10.0 to $1.25 per million tokens (87.5% reduction), output tokens from $40.0 to $10.0 (75% reduction), and cached input tokens from $5.0 to $0.125 (97.5% reduction). All models have their updatedAt field set to '2025-08-07' indicating recent pricing updates.

These changes are made in the apps/sim/providers/models.ts file, which serves as the central configuration for model pricing used throughout the application. The pricing data structure follows the established ModelPricing interface pattern with input, cachedInput, output costs per million tokens, and an updatedAt timestamp. This pricing information is consumed by the getModelPricing function in the pricing provider to calculate actual costs for token usage across the platform.

Confidence score: 4/5

  • This PR is safe to merge with low risk as it only updates pricing configuration data without changing logic
  • Score reflects straightforward data updates with consistent patterns across all GPT-5 variants, though the dramatic price reductions warrant verification
  • Pay close attention to apps/sim/providers/models.ts to ensure the new pricing values are accurate and reflect official OpenAI pricing

1 file reviewed, no comments

Edit Code Review Bot Settings | Greptile

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.

1 participant