Add GPT-4.1, o-series, and computer-use-preview models #45
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant changes to the token cost calculation logic, the structure of the model data, and the user interface for model selection and calculation explanations. The updates ensure better scalability, improved user experience, and enhanced clarity in cost calculations. Below are the most important changes grouped by theme:
Cost Calculation Updates:
src/stores/CalcStore.js
andsrc/components/calculator/CalculationExplanation.jsx
. This change affects how the total cost is calculated and displayed. [1] [2] [3]Model Data Restructuring:
models
data insrc/stores/ModelStore.js
to group models into categories (e.g., "GPT-4.1", "o-series") with nesteditems
. This allows for better organization and scalability of model configurations. [1] [2] [3]ModelSelector
component to support the new grouped model structure. AddedListSubheader
elements for grouping models and adjusted the logic to handle nested model data when selecting a model. [1] [2]UI Improvements:
comment
field for models insrc/stores/ModelStore.js
, which is displayed in theCalculationExplanation
component if present. This provides additional context or important notes about specific models. [1] [2]