Skip to content

Commit 6c52952

Browse files
authored
feat(completion): add constants for new GPT models (#520)
Added constants for new GPT models including `gpt-4-1106-preview`, `gpt-4-vision-preview` and `gpt-3.5-turbo-1106`. The models were announced in the following blog post: https://openai.com/blog/new-models-and-developer-products-announced-at-devday
1 parent c47ddfc commit 6c52952

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

completion.go

+6
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ const (
2222
GPT432K = "gpt-4-32k"
2323
GPT40613 = "gpt-4-0613"
2424
GPT40314 = "gpt-4-0314"
25+
GPT4TurboPreview = "gpt-4-1106-preview"
26+
GPT4VisionPreview = "gpt-4-vision-preview"
2527
GPT4 = "gpt-4"
28+
GPT3Dot5Turbo1106 = "gpt-3.5-turbo-1106"
2629
GPT3Dot5Turbo0613 = "gpt-3.5-turbo-0613"
2730
GPT3Dot5Turbo0301 = "gpt-3.5-turbo-0301"
2831
GPT3Dot5Turbo16K = "gpt-3.5-turbo-16k"
@@ -69,9 +72,12 @@ var disabledModelsForEndpoints = map[string]map[string]bool{
6972
GPT3Dot5Turbo: true,
7073
GPT3Dot5Turbo0301: true,
7174
GPT3Dot5Turbo0613: true,
75+
GPT3Dot5Turbo1106: true,
7276
GPT3Dot5Turbo16K: true,
7377
GPT3Dot5Turbo16K0613: true,
7478
GPT4: true,
79+
GPT4TurboPreview: true,
80+
GPT4VisionPreview: true,
7581
GPT40314: true,
7682
GPT40613: true,
7783
GPT432K: true,

0 commit comments

Comments
 (0)