role.go 447 B

1234567891011
  1. package ticket
  2. import "github.com/sashabaranov/go-openai"
  3. var Role = map[MessageProvider]string{
  4. MessageProvider_EmailMessageProvider: openai.ChatMessageRoleUser,
  5. MessageProvider_ChatMessageProvider: openai.ChatMessageRoleUser,
  6. MessageProvider_GptMessageProvider: openai.ChatMessageRoleAssistant,
  7. MessageProvider_ApiMessageProvider: openai.ChatMessageRoleSystem,
  8. MessageProvider_FunctionProvider: openai.ChatMessageRoleFunction,
  9. }