Skip to content

Commit b4d8ce9

Browse files
committed
chore: update modelMaps variable with new OpenAI models
- Remove several unused OpenAI models from the `modelMaps` variable - Add the `gpt-3.5-turbo-instruct` model to the `modelMaps` variable - Add the `davinci-002` model to the `modelMaps` variable - Add the `curie-002` model to the `modelMaps` variable - Add the `ada-002` model to the `modelMaps` variable - Add the `babbage-002` model to the `modelMaps` variable Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 parent 46af71f commit b4d8ce9

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

openai/openai.go

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,15 @@ var modelMaps = map[string]string{
2727
"gpt-3.5-turbo-16k": openai.GPT3Dot5Turbo16K,
2828
"gpt-3.5-turbo-16k-0613": openai.GPT3Dot5Turbo16K0613,
2929
"gpt-3.5-turbo": openai.GPT3Dot5Turbo,
30-
"text-davinci-003": openai.GPT3TextDavinci003,
31-
"text-davinci-002": openai.GPT3TextDavinci002,
32-
"text-davinci-001": openai.GPT3TextDavinci001,
33-
"text-curie-001": openai.GPT3TextCurie001,
34-
"text-babbage-001": openai.GPT3TextBabbage001,
35-
"text-ada-001": openai.GPT3TextAda001,
36-
"davinci-instruct-beta": openai.GPT3DavinciInstructBeta,
30+
"gpt-3.5-turbo-instruct": openai.GPT3Dot5TurboInstruct,
3731
"davinci": openai.GPT3Davinci,
38-
"curie-instruct-beta": openai.GPT3CurieInstructBeta,
32+
"davinci-002": openai.GPT3Davinci002,
3933
"curie": openai.GPT3Curie,
34+
"curie-002": openai.GPT3Curie002,
4035
"ada": openai.GPT3Ada,
36+
"ada-002": openai.GPT3Ada002,
4137
"babbage": openai.GPT3Babbage,
38+
"babbage-002": openai.GPT3Babbage002,
4239
}
4340

4441
// GetModel returns the model ID corresponding to the given model name.

0 commit comments

Comments
 (0)