File tree 2 files changed +6
-22
lines changed
2 files changed +6
-22
lines changed Original file line number Diff line number Diff line change @@ -31,26 +31,10 @@ const NON_CHAT_MODELS = [
31
31
"ada" ,
32
32
] ;
33
33
34
- const CHAT_ONLY_MODELS = [
35
- "gpt-3.5-turbo" ,
36
- "gpt-3.5-turbo-0613" ,
37
- "gpt-3.5-turbo-16k" ,
38
- "gpt-4" ,
39
- "gpt-4-turbo" ,
40
- "gpt-4o" ,
41
- "gpt-35-turbo-16k" ,
42
- "gpt-35-turbo-0613" ,
43
- "gpt-35-turbo" ,
44
- "gpt-4-32k" ,
45
- "gpt-4-turbo-preview" ,
46
- "gpt-4-vision" ,
47
- "gpt-4-0125-preview" ,
48
- "gpt-4-1106-preview" ,
49
- "gpt-4o-mini" ,
50
- "o1-preview" ,
51
- "o1-mini" ,
52
- "o3-mini" ,
53
- ] ;
34
+ function isChatOnlyModel ( model : string ) : boolean {
35
+ // gpt and o-series models
36
+ return model . startsWith ( "gpt" ) || model . startsWith ( "o" ) ;
37
+ }
54
38
55
39
const formatMessageForO1 = ( messages : ChatCompletionMessageParam [ ] ) => {
56
40
return messages ?. map ( ( message : any ) => {
@@ -335,7 +319,7 @@ class OpenAI extends BaseLLM {
335
319
options : CompletionOptions ,
336
320
) : AsyncGenerator < ChatMessage > {
337
321
if (
338
- ! CHAT_ONLY_MODELS . includes ( options . model ) &&
322
+ ! isChatOnlyModel ( options . model ) &&
339
323
this . supportsCompletions ( ) &&
340
324
( NON_CHAT_MODELS . includes ( options . model ) ||
341
325
this . useLegacyCompletionsEndpoint ||
Original file line number Diff line number Diff line change 2
2
"name" : " continue" ,
3
3
"icon" : " media/icon.png" ,
4
4
"author" : " Continue Dev, Inc" ,
5
- "version" : " 1.1.31 " ,
5
+ "version" : " 1.1.32 " ,
6
6
"repository" : {
7
7
"type" : " git" ,
8
8
"url" : " https://github.com/continuedev/continue"
You can’t perform that action at this time.
0 commit comments