Skip to content

chore(ai): Clean up model costs v1 #4951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2025
Merged

Conversation

vgrozdanic
Copy link
Member

@vgrozdanic vgrozdanic commented Jul 17, 2025

Clean up of legacy version 1 of model costs.

Version 2 has been live for a couple of weeks now, and we have also fully deprecated and removed v1 from global config generation in Sentry.

#skip-changelog

#[serde(default, skip_serializing_if = "HashMap::is_empty")]
pub models: HashMap<String, ModelCostV2>,
}

impl ModelCosts {
const MAX_SUPPORTED_VERSION: u16 = 2;
const SUPPORTED_VERSION: u16 = 2;
Copy link
Member Author

Choose a reason for hiding this comment

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

Currently, only 1 version is supported

@vgrozdanic vgrozdanic marked this pull request as ready for review July 17, 2025 11:42
@vgrozdanic vgrozdanic requested a review from a team as a code owner July 17, 2025 11:42
@vgrozdanic vgrozdanic force-pushed the vg/clean-up-model-costs-v1 branch from c065252 to 1164e6a Compare July 18, 2025 09:33
@vgrozdanic vgrozdanic force-pushed the vg/clean-up-model-costs-v1 branch from 1164e6a to ee19e62 Compare July 18, 2025 09:33
@vgrozdanic vgrozdanic added this pull request to the merge queue Jul 18, 2025
Merged via the queue into master with commit 3baf0a3 Jul 18, 2025
28 checks passed
@vgrozdanic vgrozdanic deleted the vg/clean-up-model-costs-v1 branch July 18, 2025 10:13
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