Add chat message role const (#111)
This commit is contained in:
1 parent
4e1be7d99f
commit
d1a81205bf
1 file changed
+7
@@ -8,6 +8,13 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// Chat message role defined by the OpenAI API.
|
||||
const (
|
||||
ChatMessageRoleSystem = "system"
|
||||
ChatMessageRoleUser = "user"
|
||||
ChatMessageRoleAssistant = "assistant"
|
||||
)
|
||||
|
||||
var (
|
||||
ErrChatCompletionInvalidModel = errors.New("currently, only gpt-3.5-turbo and gpt-3.5-turbo-0301 are supported")
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user