mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-12-05 08:00:53 +00:00
fix(openai): price gpt-image-2.6 models (#850)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c2891e14ce
commit
32f3b11ddf
2 files changed
+6
No files matched your search
@@ -458,6 +458,8 @@ pub(super) const IMAGE_MODELS: &[&str] = &[
|
||||
"gpt-image-2.5-sunburst-2026-09-08",
|
||||
"gpt-image-2.5-flare",
|
||||
"gpt-image-2.5-flare-2026-09-08",
|
||||
"gpt-image-2.6-sunburst",
|
||||
"gpt-image-2.6-flare",
|
||||
];
|
||||
pub(super) const IMAGE_TEXT_RATES: TokenRates = TokenRates::new(50_000, 0, 12_500);
|
||||
pub(super) const IMAGE_TOKEN_RATES: TokenRates = TokenRates::new(80_000, 300_000, 20_000);
|
||||
|
||||
@@ -3218,6 +3218,8 @@ async fn image_prices_should_use_modality_rates_and_precede_delivery() {
|
||||
(ImageRequestKind::Edit, "gpt-image-2.5-sunburst-2026-09-08"),
|
||||
(ImageRequestKind::Generation, "gpt-image-2.5-flare"),
|
||||
(ImageRequestKind::Edit, "gpt-image-2.5-flare-2026-09-08"),
|
||||
(ImageRequestKind::Generation, "gpt-image-2.6-sunburst"),
|
||||
(ImageRequestKind::Edit, "gpt-image-2.6-flare"),
|
||||
] {
|
||||
let events = image_metering_events(kind, &response, model).await;
|
||||
let costs = events
|
||||
@@ -3272,6 +3274,8 @@ async fn image_prices_should_remain_unknown_when_modality_or_model_is_uncertain(
|
||||
("gpt-image-2.5", valid.clone()),
|
||||
("gpt-image-2.5-sunburst-future", valid.clone()),
|
||||
("gpt-image-2.5-flare-future", valid.clone()),
|
||||
("gpt-image-2.6", valid.clone()),
|
||||
("gpt-image-2.6-flare-future", valid.clone()),
|
||||
("gpt-image-2", json!(null)),
|
||||
(
|
||||
"gpt-image-2",
|
||||
|
||||
Reference in new issue
Block a user