We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set the model in encode / encodeGenerator like encodeChat or encodeChatGenerator?
encode
encodeGenerator
encodeChat
encodeChatGenerator
import { encode } from 'gpt-tokenizer' const text = 'Hello, world!' const generator =encodeGenerator(text, /* I want to add model or decoder here */)
like
import { encodeChatGenerator } from 'gpt-tokenizer' const generator = encodeGenerator(messages, 'gpt-3.5-turbo')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
How to set the model in
encode
/encodeGenerator
likeencodeChat
orencodeChatGenerator
?like
The text was updated successfully, but these errors were encountered: