#924 Replace Novel Kayra subtier context

This commit is contained in:
Cohee1207
2023-08-12 14:21:05 +03:00
parent 82f6d11795
commit 092846e0bc
2 changed files with 21 additions and 13 deletions

View File

@ -47,8 +47,17 @@ export function setNovelData(data) {
novel_data = data;
}
export function getNovelMaxContextTokens() {
return novel_data?.perks?.contextTokens;
export function getKayraMaxContextTokens() {
switch (novel_data?.tier) {
case 1:
return 3072;
case 2:
return 6144;
case 3:
return 8192;
}
return null;
}
function getNovelTier(tier) {