fix: normalize WorldLabs VIP98K endpoint
This commit is contained in:
parent
e3180c23ac
commit
d3a6497672
32
lib/db/migrations/0093_update_worldlabs_vip98k_base_url.sql
Normal file
32
lib/db/migrations/0093_update_worldlabs_vip98k_base_url.sql
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
UPDATE "AiProvider"
|
||||||
|
SET
|
||||||
|
"baseUrl" = 'https://api.vip98k.com',
|
||||||
|
"updatedAt" = NOW()
|
||||||
|
WHERE
|
||||||
|
"type" = 'worldlabs-3d'
|
||||||
|
AND regexp_replace(BTRIM(COALESCE("baseUrl", '')), '/+$', '') IN (
|
||||||
|
'',
|
||||||
|
'https://api.worldlabs.ai',
|
||||||
|
'https://api.worldlabs.ai/marble/v1',
|
||||||
|
'https://api.vip98k.com/v1',
|
||||||
|
'https://api.vip98k.com/marble/v1'
|
||||||
|
);
|
||||||
|
|
||||||
|
UPDATE "SystemSettings"
|
||||||
|
SET
|
||||||
|
"value" = jsonb_set(
|
||||||
|
"value",
|
||||||
|
'{baseUrl}',
|
||||||
|
to_jsonb('https://api.vip98k.com'::text),
|
||||||
|
true
|
||||||
|
),
|
||||||
|
"updatedAt" = NOW()
|
||||||
|
WHERE
|
||||||
|
"key" = 'worldlabs_key_pool_config'
|
||||||
|
AND regexp_replace(BTRIM(COALESCE("value" ->> 'baseUrl', '')), '/+$', '') IN (
|
||||||
|
'',
|
||||||
|
'https://api.worldlabs.ai',
|
||||||
|
'https://api.worldlabs.ai/marble/v1',
|
||||||
|
'https://api.vip98k.com/v1',
|
||||||
|
'https://api.vip98k.com/marble/v1'
|
||||||
|
);
|
||||||
@ -561,6 +561,13 @@
|
|||||||
"when": 1784592000000,
|
"when": 1784592000000,
|
||||||
"tag": "0092_add_atlascloud_provider_type",
|
"tag": "0092_add_atlascloud_provider_type",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 79,
|
||||||
|
"version": "7",
|
||||||
|
"when": 1785196800000,
|
||||||
|
"tag": "0093_update_worldlabs_vip98k_base_url",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user