-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add customizable token modifier costs per AI model
chore: add token modifier tests - Implemented 'tokenModifierRatio' for AI models in ServerConfig.ts - Added `_calculateTokenCost` function in AIController.ts to calculate the modifier ratio for a given model. - Added tests to AIController.spec.ts to ensure proper operation This allows us to set custom token-to-cost ratios for each model, enabling differential pricing or discounts based on the AI model in use.
- Loading branch information
1 parent
4d7715f
commit afa452c
Showing
2 changed files
with
172 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters