mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-07 02:51:50 +00:00
feat: add inline token count etc and fix venv
This commit is contained in:
parent
561cea0d4a
commit
33c615504d
21 changed files with 984 additions and 459 deletions
|
|
@ -48,14 +48,14 @@ describe('fmtK', () => {
|
|||
expect(fmtK(999)).toBe('999')
|
||||
})
|
||||
|
||||
it('formats thousands as K', () => {
|
||||
expect(fmtK(1000)).toBe('1K')
|
||||
expect(fmtK(1500)).toBe('1.5K')
|
||||
it('formats thousands as lowercase k', () => {
|
||||
expect(fmtK(1000)).toBe('1k')
|
||||
expect(fmtK(1500)).toBe('1.5k')
|
||||
})
|
||||
|
||||
it('formats millions and billions', () => {
|
||||
expect(fmtK(1_000_000)).toBe('1M')
|
||||
expect(fmtK(1_000_000_000)).toBe('1B')
|
||||
it('formats millions and billions with lowercase suffixes', () => {
|
||||
expect(fmtK(1_000_000)).toBe('1m')
|
||||
expect(fmtK(1_000_000_000)).toBe('1b')
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue