ai

package
v0.0.0-...-d33b70a Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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) Summary

func (g *GPTService) Summary(content []string) (string, error)

func (*GPTService) SummaryParallel

func (g *GPTService) SummaryParallel(parts []string) ([]string, []error)

func (*GPTService) SummaryStream

func (g *GPTService) SummaryStream(content []string)

func (*GPTService) Text

func (g *GPTService) Text(i int, content string) (string, error)

func (*GPTService) TextStream

func (g *GPTService) TextStream(content string)

Jump to

Keyboard shortcuts

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