From 9db11ca64653ef9e619d114ff19f150f739e5739 Mon Sep 17 00:00:00 2001 From: "Haihui.Wang" Date: Fri, 14 Aug 2026 18:11:44 +0800 Subject: [PATCH] Add cached price per million in model list --- aigateway/types/openai.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aigateway/types/openai.go b/aigateway/types/openai.go index df93aefcf..0d50d84df 100644 --- a/aigateway/types/openai.go +++ b/aigateway/types/openai.go @@ -288,8 +288,9 @@ const ( // ModelTokenPrice is currency plus per-million-token rate (major units, from accounting cents + sku_unit). type ModelTokenPrice struct { - Currency string `json:"currency"` - PricePerMillion float64 `json:"price_per_million"` + Currency string `json:"currency"` + PricePerMillion float64 `json:"price_per_million"` + CachedPricePerMillion *float64 `json:"cached_price_per_million,omitempty"` } // ModelModalPrice is a unit-based media generation price.