Closed BennyAlex closed 2 weeks ago
content
expects a string, not an array. TypeScript's type checking could have helped you discover this problem.
Thats not correct. When using images we must use an array and have {type: text} as well as {type: image_url} inside it.
It is correct for what this library supports. If you're after tokenizing images, that is not yet supported: https://github.com/niieani/gpt-tokenizer/issues/41 PRs welcome.
I get this error when using this als input chat: