mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
#924 Replace Novel Kayra subtier context
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user