FastChat
FastChat copied to clipboard
count_token seems return incorrect values for ChatGLM model
Give prompt: [['Human', 'Hello! What is your name?'], ['Assistant', None]], the count_token api will returns 2 which is the history length instead of token count.
See the following screenshots: