0.0.5 • Published 10 months ago

gpt-token v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Usage

npm i gpt-token
import { textTokens, messageTokens } from 'gpt-token'

// => 9
console.log(textTokens('A quick brown fox jumps over the lazy dog'))

// => 16
console.log(messageTokens([
  {
    role: 'user',
    content: 'A quick brown fox jumps over the lazy dog'
  }
]))

Thanks ❤️

License

MIT License © Krcisleo

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago

0.0.0

10 months ago