fix: restore xai pricing cache fallback

This commit is contained in:
Peter Steinberger
2026-03-28 11:43:12 +00:00
parent 8061b792b2
commit aa9454f270

View File

@@ -69,9 +69,7 @@ export function getCachedGatewayModelPricing(params: {
if (!shouldNormalizeCachedPricingLookup(provider)) {
return undefined;
}
const normalized = normalizeModelRef(provider, model, {
allowPluginNormalization: false,
});
const normalized = normalizeModelRef(provider, model);
const normalizedKey = modelPricingCacheKey(normalized.provider, normalized.model);
return normalizedKey ? cachedPricing.get(normalizedKey) : undefined;
}