fix: show task model list prices accurately
This commit is contained in:
1 parent
b2266d7e9d
commit
b455d8d79f
9 files changed
+165
-30
No files matched your search
@@ -0,0 +1,20 @@
|
||||
-- Publish the official Tripo list price alongside the platform task price.
|
||||
-- Tripo documents 1 credit = $0.01 USD and H-series text-to-3D with standard
|
||||
-- textures costs 20 credits, so the source list price is $0.20 per task.
|
||||
-- The platform price remains the configured CNY amount and is not presented as
|
||||
-- a percentage discount unless an explicit discount is configured.
|
||||
UPDATE model_catalog
|
||||
SET pricing = pricing || jsonb_build_object(
|
||||
'standardPrice', jsonb_build_object(
|
||||
'price', 0.20,
|
||||
'unit', 'USD / task',
|
||||
'credits', 20,
|
||||
'priceSource', 'Tripo 官方 API 定价'
|
||||
),
|
||||
'discountLabel', '标准价'
|
||||
),
|
||||
updated_at = now()
|
||||
WHERE provider_id = 'provider-vast'
|
||||
AND upstream_model IN ('v3.1-20260211', 'v3.0-20250812', 'v2.5-20250123')
|
||||
AND deleted_at IS NULL
|
||||
AND pricing IS NOT NULL;
|
||||
Reference in new issue
Block a user