Add chat message role const (#111)

This commit is contained in:
fishcg authored and GitHub committed 2023-03-03 13:07:09 +04:00
1 parent 4e1be7d99f
commit d1a81205bf
1 file changed
+7
+7
View File
@@ -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")
)