diff --git a/src/aux-records/AIController.ts b/src/aux-records/AIController.ts index b64dd906e..1be363c28 100644 --- a/src/aux-records/AIController.ts +++ b/src/aux-records/AIController.ts @@ -90,6 +90,13 @@ export interface AIChatOptions { * - An array of strings indicates that only users with the given subscription tiers are allowed. */ allowedChatSubscriptionTiers: true | string[]; + + /** + * A mapping of token modifiers and their respective numerical ratios. + * + * - The keys represent different token modifier names, while the values are the numeric ratios associated with each modifier. + */ + tokenModifierRatio: Record; } export interface AllowedAIChatModel { diff --git a/src/aux-server/aux-backend/shared/ServerBuilder.ts b/src/aux-server/aux-backend/shared/ServerBuilder.ts index 6145c5df8..55f829041 100644 --- a/src/aux-server/aux-backend/shared/ServerBuilder.ts +++ b/src/aux-server/aux-backend/shared/ServerBuilder.ts @@ -1368,6 +1368,7 @@ export class ServerBuilder implements SubscriptionLike { ), allowedChatSubscriptionTiers: options.ai.chat.allowedSubscriptionTiers, + tokenModifierRatio: options.ai.chat.tokenModifierRatio, }, }; }