File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -43,14 +43,19 @@ const (
43
43
// }}}
44
44
45
45
// {{{ https://platform.openai.com/docs/models/gpt-3-5
46
- GPT3_5Turbo = "gpt-3.5-turbo"
47
- GPT3_5Turbo_0301 = "gpt-3.5-turbo--0301"
46
+ GPT3_5Turbo = "gpt-3.5-turbo"
47
+ GPT3_5Turbo_0301 = "gpt-3.5-turbo-0301"
48
+ GPT3_5Turbo_0613 = "gpt-3.5-turbo-0613"
49
+ GPT3_5Turbo_16K = "gpt-3.5-turbo-16k"
50
+ GPT3_5Turbo_16K_0613 = "gpt-3.5-turbo-16k-0613"
48
51
// }}}
49
52
50
53
// {{{ https://platform.openai.com/docs/models/gpt-4
51
54
GPT4 = "gpt-4"
52
- GPT4_0314 = "gpt-3-0314"
55
+ GPT4_0314 = "gpt-4-0314"
56
+ GPT4_0613 = "gpt-4-0613"
53
57
GPT4_32K = "gpt-4-32k"
54
58
GPT4_32K_0314 = "gpt-4-32k-0314"
59
+ GPT4_32K_0613 = "gpt-4-32k-0613"
55
60
// }}}
56
61
)
Original file line number Diff line number Diff line change 29
29
Run : func () (any , error ) {
30
30
client := openaigo .NewClient (OPENAI_API_KEY )
31
31
request := openaigo.CompletionRequestBody {
32
- Model : "text-davinci-003" ,
32
+ Model : openaigo . TextDavinci003 ,
33
33
Prompt : []string {"Say this is a test" },
34
34
}
35
35
return client .Completion (nil , request )
@@ -112,7 +112,7 @@ var (
112
112
}
113
113
}
114
114
request := openaigo.ChatCompletionRequestBody {
115
- Model : openaigo .GPT3_5Turbo ,
115
+ Model : openaigo .GPT3_5Turbo_0613 ,
116
116
StreamCallback : calback ,
117
117
Messages : []openaigo.ChatMessage {
118
118
{
You can’t perform that action at this time.
0 commit comments