Skip to content

Commit d1a8120

Browse files
authored
Add chat message role const (#111)
1 parent 4e1be7d commit d1a8120

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

chat.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ import (
88
"net/http"
99
)
1010

11+
// Chat message role defined by the OpenAI API.
12+
const (
13+
ChatMessageRoleSystem = "system"
14+
ChatMessageRoleUser = "user"
15+
ChatMessageRoleAssistant = "assistant"
16+
)
17+
1118
var (
1219
ErrChatCompletionInvalidModel = errors.New("currently, only gpt-3.5-turbo and gpt-3.5-turbo-0301 are supported")
1320
)

0 commit comments

Comments
 (0)