We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ad5811 commit fdcd81aCopy full SHA for fdcd81a
1 file changed
tokenizer.go
@@ -74,8 +74,8 @@ package tokenizer
74
//}
75
76
import (
77
- "strings"
78
"errors"
+ "strings"
79
80
"github.com/tiktoken-go/tokenizer/codec"
81
)
@@ -144,11 +144,14 @@ const (
144
145
146
var modelPrefixToEncoding map[Model]Encoding = map[Model]Encoding{
147
- "o1-": O200kBase,
148
- "gpt-4o-": O200kBase,
149
- "gpt-4-": Cl100kBase,
150
- "gpt-3.5-turbo-": Cl100kBase,
151
- "gpt-35-turbo-": Cl100kBase,
+ "o1-": O200kBase,
+ // chat
+ "chatgpt-4o-": O200kBase,
+ "gpt-4o-": O200kBase,
+ "gpt-4-": Cl100kBase,
152
+ "gpt-3.5-turbo-": Cl100kBase,
153
+ "gpt-35-turbo-": Cl100kBase,
154
+ // fine-tuned
155
"ft:gpt-4": Cl100kBase,
156
"ft:gpt-3.5-turbo": Cl100kBase,
157
"ft:davinci-002": Cl100kBase,
0 commit comments