mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Adjust novel max context calculation
This commit is contained in:
@@ -41,6 +41,16 @@ const nai_tiers = {
|
||||
3: 'Opus',
|
||||
};
|
||||
|
||||
let novel_data = null;
|
||||
|
||||
export function setNovelData(data) {
|
||||
novel_data = data;
|
||||
}
|
||||
|
||||
export function getNovelMaxContextTokens() {
|
||||
return novel_data?.perks?.contextTokens;
|
||||
}
|
||||
|
||||
function getNovelTier(tier) {
|
||||
return nai_tiers[tier] ?? 'no_connection';
|
||||
}
|
||||
|
Reference in New Issue
Block a user