You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: completion.go
+10
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,14 @@ import (
4
4
"bytes"
5
5
"context"
6
6
"encoding/json"
7
+
"errors"
7
8
"net/http"
8
9
)
9
10
11
+
var (
12
+
ErrCompletionUnsupportedModel=errors.New("this model is not supported with this method, please use CreateChatCompletion client method instead") //nolint:lll
13
+
)
14
+
10
15
// GPT3 Defines the models provided by OpenAI to use when generating
11
16
// completions from OpenAI.
12
17
// GPT3 Models are designed for text-based tasks. For code-specific
0 commit comments