Repository navigation
Commit 6791c13
committed
Handle binary files correctly in token estimation without range
- blobs should not be counted [Image]
├── apps
│ └── editor
│ └── src
│ ├── context
│ │ ├── context-initialization.ts
│ │ └── providers
│ │ └── workspace
│ │ ├── modules
│ │ │ └── token-calculator.ts
│ │ └── workspace-provider.ts
│ └── utils
│ └── is-binary.ts
└── packages
└── shared
└── src
└── utils
└── display-token-count.ts1 parent 1678bba commit 6791c13
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
98 | 104 | | |
99 | 105 | | |
100 | 106 | | |
| |||
0 commit comments