mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-11 17:21:13 +00:00
fix: restore xai pricing cache fallback
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user