Support January 25, 2024, models update. (#644)

This commit is contained in:
Daniil
2024-01-26 00:41:48 -08:00
committed by GitHub
parent eff8dc1118
commit 4c41f24a99
2 changed files with 8 additions and 2 deletions

View File

@@ -22,7 +22,9 @@ const (
GPT432K = "gpt-4-32k" GPT432K = "gpt-4-32k"
GPT40613 = "gpt-4-0613" GPT40613 = "gpt-4-0613"
GPT40314 = "gpt-4-0314" GPT40314 = "gpt-4-0314"
GPT4TurboPreview = "gpt-4-1106-preview" GPT4Turbo0125 = "gpt-4-0125-preview"
GPT4Turbo1106 = "gpt-4-1106-preview"
GPT4TurboPreview = "gpt-4-turbo-preview"
GPT4VisionPreview = "gpt-4-vision-preview" GPT4VisionPreview = "gpt-4-vision-preview"
GPT4 = "gpt-4" GPT4 = "gpt-4"
GPT3Dot5Turbo1106 = "gpt-3.5-turbo-1106" GPT3Dot5Turbo1106 = "gpt-3.5-turbo-1106"
@@ -78,6 +80,8 @@ var disabledModelsForEndpoints = map[string]map[string]bool{
GPT4: true, GPT4: true,
GPT4TurboPreview: true, GPT4TurboPreview: true,
GPT4VisionPreview: true, GPT4VisionPreview: true,
GPT4Turbo1106: true,
GPT4Turbo0125: true,
GPT40314: true, GPT40314: true,
GPT40613: true, GPT40613: true,
GPT432K: true, GPT432K: true,

View File

@@ -35,6 +35,8 @@ const (
BabbageCodeSearchText EmbeddingModel = "code-search-babbage-text-001" BabbageCodeSearchText EmbeddingModel = "code-search-babbage-text-001"
AdaEmbeddingV2 EmbeddingModel = "text-embedding-ada-002" AdaEmbeddingV2 EmbeddingModel = "text-embedding-ada-002"
SmallEmbedding3 EmbeddingModel = "text-embedding-3-small"
LargeEmbedding3 EmbeddingModel = "text-embedding-3-large"
) )
// Embedding is a special format of data representation that can be easily utilized by machine // Embedding is a special format of data representation that can be easily utilized by machine