We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e1be7d commit d1a8120Copy full SHA for d1a8120
chat.go
@@ -8,6 +8,13 @@ import (
8
"net/http"
9
)
10
11
+// Chat message role defined by the OpenAI API.
12
+const (
13
+ ChatMessageRoleSystem = "system"
14
+ ChatMessageRoleUser = "user"
15
+ ChatMessageRoleAssistant = "assistant"
16
+)
17
+
18
var (
19
ErrChatCompletionInvalidModel = errors.New("currently, only gpt-3.5-turbo and gpt-3.5-turbo-0301 are supported")
20
0 commit comments