Documentation ¶
Index ¶
- Constants
- type GPTService
- func (g *GPTService) SplitContent(content []string) []string
- func (g *GPTService) Summary(content []string) (string, error)
- func (g *GPTService) SummaryParallel(parts []string) ([]string, []error)
- func (g *GPTService) SummaryStream(content []string)
- func (g *GPTService) Text(i int, content string) (string, error)
- func (g *GPTService) TextStream(content string)
Constants ¶
View Source
const ( MAX_TOKEN = 1000 MODEL = openai.GPT3Dot5Turbo )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GPTService ¶
type GPTService struct {
// contains filtered or unexported fields
}
var Service *GPTService
func (*GPTService) SplitContent ¶
func (g *GPTService) SplitContent(content []string) []string
func (*GPTService) SummaryParallel ¶
func (g *GPTService) SummaryParallel(parts []string) ([]string, []error)
func (*GPTService) SummaryStream ¶
func (g *GPTService) SummaryStream(content []string)
func (*GPTService) TextStream ¶
func (g *GPTService) TextStream(content string)
Click to show internal directories.
Click to hide internal directories.