PygmalionAI / aphrodite-engine

PygmalionAI's large-scale inference engine
https://pygmalion.chat
GNU Affero General Public License v3.0
606 stars 78 forks source link

Fix: kobold api /tokencount #424

Closed Krovius closed 3 weeks ago

Krovius commented 3 weeks ago

Existing source attempts to pass a string as 'Prompt' to the tokenizer and performs a len() on a dict, returning the number of members and not the token count.