Skip to content

Commit

Permalink
Merge pull request #32 from trynova-ai/main
Browse files Browse the repository at this point in the history
Add 'gpt-3.5-turbo-16k' to NumTokensFromMessages example
  • Loading branch information
pkoukk authored Jun 28, 2023
2 parents 6b3f51c + 84c5013 commit f360d8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ func NumTokensFromMessages(messages []openai.ChatCompletionMessage, model string
model == "gpt-4-0314" ||
model == "gpt-4-32k-0314" ||
model == "gpt-4-0613" ||
model == "gpt-4-32k-0613" {
model == "gpt-4-32k-0613" ||
model == "gpt-3.5-turbo-16k" {
tokensPerMessage = 3
tokensPerName = -1
} else if model == "gpt-3.5-turbo-0301" {
Expand Down

0 comments on commit f360d8f

Please sign in to comment.