mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-08-19 01:15:51 +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 chargeScalar = 1;
|
||||||
let minimalCharge = 0;
|
let minimalCharge = 0;
|
||||||
|
|
||||||
if (opts.injectPageScript || opts.injectFrameScript) {
|
|
||||||
await auth.assertTier(0, 'Script injection');
|
|
||||||
minimalCharge = 4_000;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (opts.withGeneratedAlt) {
|
if (opts.withGeneratedAlt) {
|
||||||
await auth.assertTier(0, 'Alt text generation');
|
await auth.assertTier(0, 'Alt text generation');
|
||||||
|
minimalCharge = 765;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (opts.injectPageScript || opts.injectFrameScript) {
|
||||||
|
await auth.assertTier(0, 'Script injection');
|
||||||
minimalCharge = 4_000;
|
minimalCharge = 4_000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user