mirror of https://github.com/openclaw/openclaw.git
fix: restore xai pricing cache fallback
This commit is contained in:
parent
8061b792b2
commit
aa9454f270
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue