File tree 1 file changed +0
-13
lines changed
1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,6 @@ const (
36
36
DefaultChunkTimeout = 5 * time .Second
37
37
)
38
38
39
- var modelTokens = map [string ]int {
40
- openai .GPT3Dot5Turbo : 4096 ,
41
- openai .GPT3Dot5Turbo16K : 16384 ,
42
- openai .GPT4 : 8192 ,
43
- openai .GPT432K : 32768 ,
44
- "default" : 4096 ,
45
- }
46
-
47
39
// Client is a configurable interface to the OpenAI API. It allows for the
48
40
// generation of text completions using various models, with adjustable
49
41
// parameters for token count, temperature, and topP. A specified timeout can be
@@ -172,11 +164,6 @@ func New(apiToken string, opts ...Option) *Client {
172
164
c .model = DefaultModel
173
165
}
174
166
175
- var ok bool
176
- if c .maxTokens , ok = modelTokens [c .model ]; ! ok {
177
- c .maxTokens = modelTokens ["default" ]
178
- }
179
-
180
167
c .debug ("Model: %s" , c .model )
181
168
c .debug ("Temperature: %f" , c .temperature )
182
169
c .debug ("TopP: %f" , c .topP )
You can’t perform that action at this time.
0 commit comments