fix(frontend): import structured models.dev pricing

This commit is contained in:
MMEXA
2026-07-11 18:12:55 +08:00
parent 3014fd50c6
commit 59d37ae1dd
4 changed files with 206 additions and 18 deletions
@@ -1105,17 +1105,9 @@ function selectModel(model: ModelsDevModelItem) {
}
loadVideoPricingFromConfig()
if (model.inputPrice !== undefined || model.outputPrice !== undefined) {
tieredPricing.value = {
tiers: [{
up_to: null,
input_price_per_1m: model.inputPrice || 0,
output_price_per_1m: model.outputPrice || 0,
}]
}
} else {
tieredPricing.value = null
}
tieredPricing.value = model.tieredPricing
? structuredClone(model.tieredPricing)
: null
presetPanelCollapsed.value = true
scrollToBasicInformation()