chatgpt

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFormattedChatGptResponseForSlack

func GetFormattedChatGptResponseForSlack(responseText string) *slack.SectionBlock

Types

type ChatGPT

type ChatGPT struct {
	// contains filtered or unexported fields
}

func NewChatGPTAPI

func NewChatGPTAPI() (*ChatGPT, error)

func (*ChatGPT) AskChatGPT

func (c *ChatGPT) AskChatGPT(prompt string) (string, error)

func (*ChatGPT) AskXplorersBot

func (c *ChatGPT) AskXplorersBot(slackEvent url.Values) (*slack.Blocks, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL