You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
num_tokens += 3;// every reply is primed with <|start|>assistant<|message|>
Ok(num_tokens asusize)
}
Currently, any model with a name prefixed with gpt-3.5 is treated as having (tokens_per_message, tokens_per_name) set to (4, -1). However, this is only true of gpt-3.5-turbo-0301. Future snapshots of gpt-3.5-turbo reverted to the normal (3, 1) configuration.
AFAIK, the (4, -1) configuration shouldn't apply for all gpt-3.5 models, it should only apply for gpt-3.5-turbo-0301.
The text was updated successfully, but these errors were encountered:
tiktoken-rs/tiktoken-rs/src/api.rs
Lines 96 to 132 in 35ae83e
Currently, any model with a name prefixed with
gpt-3.5
is treated as having(tokens_per_message, tokens_per_name)
set to(4, -1)
. However, this is only true ofgpt-3.5-turbo-0301
. Future snapshots ofgpt-3.5-turbo
reverted to the normal(3, 1)
configuration.AFAIK, the
(4, -1)
configuration shouldn't apply for allgpt-3.5
models, it should only apply forgpt-3.5-turbo-0301
.The text was updated successfully, but these errors were encountered: