niieani/gpt-tokenizer

Picture tokens

Open

#41 aberto em 27 de jan. de 2024

Ver no GitHub
 (3 comments) (1 reaction) (0 assignees)TypeScript (56 forks)github user discovery
help wanted

Métricas do repositório

Stars
 (808 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Hello.

The new -vision model lets you pass images (which end up as tokens). To properly calculate token use for my stuff, I'd need to be able to pass my full conversation/payload, which includes images. Does this tokenizer support that (reading the docs I don't see signs it does). Would you have recommendations of how to implement that on my side? And if I do implement it would that be a welcome PR?

Cheers.

Guia do colaborador