Skip to content

Commit 638c2f8

Browse files
committed
Fix cost estimation with accurate pricing and improve error handling
- Fix cost calculation to use correct per-token rates (input/output separate) - Update Claude 3.7 Sonnet: /MTok input, /MTok output - Update OpenAI models with latest GPT-4.1, GPT-4o pricing - Add separate input/output cost functions for accurate estimation - Fix guidelines path resolution for global installations - Add repomix optimization with --remove-comments --remove-empty-lines - Improve text sanitization for endoftext token issues - All linting tests now pass
1 parent 65b1c2b commit 638c2f8

6 files changed

Lines changed: 279 additions & 35 deletions

File tree

lib/llm-generator-v2.js

Lines changed: 141 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/llm-generator-v2.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/rulesGenerate.js

Lines changed: 13 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)