Skip to content

Commit

Permalink
feat: Added tokenModifierRatio type to AIChatOptions in AIController.ts
Browse files Browse the repository at this point in the history
feat: Added tokenModifierRatio to ServerBuilder.ts
  • Loading branch information
TroyceGowdy committed Oct 30, 2024
1 parent dbd12fe commit 491e6b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/aux-records/AIController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, number>;
}

export interface AllowedAIChatModel {
Expand Down
1 change: 1 addition & 0 deletions src/aux-server/aux-backend/shared/ServerBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1368,6 +1368,7 @@ export class ServerBuilder implements SubscriptionLike {
),
allowedChatSubscriptionTiers:
options.ai.chat.allowedSubscriptionTiers,
tokenModifierRatio: options.ai.chat.tokenModifierRatio,
},
};
}
Expand Down

0 comments on commit 491e6b4

Please sign in to comment.