mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader.git
synced 2025-08-18 16:35:58 +08:00
saas: minor tier policy tweak
This commit is contained in:
parent
5a81177c56
commit
5a7f2a4cb8
@ -1301,13 +1301,13 @@ export class CrawlerHost extends RPCHost {
|
||||
let chargeScalar = 1;
|
||||
let minimalCharge = 0;
|
||||
|
||||
if (opts.injectPageScript || opts.injectFrameScript) {
|
||||
await auth.assertTier(0, 'Script injection');
|
||||
minimalCharge = 4_000;
|
||||
}
|
||||
|
||||
if (opts.withGeneratedAlt) {
|
||||
await auth.assertTier(0, 'Alt text generation');
|
||||
minimalCharge = 765;
|
||||
}
|
||||
|
||||
if (opts.injectPageScript || opts.injectFrameScript) {
|
||||
await auth.assertTier(0, 'Script injection');
|
||||
minimalCharge = 4_000;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user