fix(catalog): drop the duplicate image cost fields from the Rust model info

Upstream added the same four resolution-tier image cost fields this branch
added, in a different position, so the upstream sync kept both copies and
rustc rejected the struct with E0124 on every cargo job. The kept block is
byte-identical, so the crate now matches upstream exactly.
This commit is contained in:
jibanez-staticduo 2026-09-30 13:45:07 +02:00
parent 443a59f69f
commit d15284227c
No known key found for this signature in database

View file

@ -301,26 +301,6 @@ pub struct ModelInfo {
pub output_cost_per_character_above_128k_tokens: Option<f64>,
#[serde(skip_serializing_if = "Option::is_none")]
pub output_cost_per_image: Option<f64>,
#[serde(
rename = "output_cost_per_image_0.5K",
skip_serializing_if = "Option::is_none"
)]
pub output_cost_per_image_0_5k: Option<f64>,
#[serde(
rename = "output_cost_per_image_1K",
skip_serializing_if = "Option::is_none"
)]
pub output_cost_per_image_1k: Option<f64>,
#[serde(
rename = "output_cost_per_image_2K",
skip_serializing_if = "Option::is_none"
)]
pub output_cost_per_image_2k: Option<f64>,
#[serde(
rename = "output_cost_per_image_4K",
skip_serializing_if = "Option::is_none"
)]
pub output_cost_per_image_4k: Option<f64>,
#[serde(skip_serializing_if = "Option::is_none")]
pub output_cost_per_image_1024: Option<f64>,
#[serde(skip_serializing_if = "Option::is_none")]