net

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GPT2

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

func NewGPT2

func NewGPT2() *GPT2

func (*GPT2) Query

func (g *GPT2) Query(ctx context.Context, query string) (string, error)

func (*GPT2) WithClient

func (g *GPT2) WithClient(c *http.Client) *GPT2

func (*GPT2) WithEndpoint

func (g *GPT2) WithEndpoint(endpoint string) *GPT2

func (*GPT2) WithMaxLength

func (g *GPT2) WithMaxLength(maxLength int) *GPT2

func (*GPT2) WithMinLength

func (g *GPT2) WithMinLength(minLength int) *GPT2

type GPT3

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

func NewGPT3

func NewGPT3() *GPT3

func (*GPT3) Query

func (g *GPT3) Query(ctx context.Context, query string) (string, error)

func (*GPT3) WithClient

func (g *GPT3) WithClient(c *http.Client) *GPT3

func (*GPT3) WithEndpoint

func (g *GPT3) WithEndpoint(endpoint string) *GPT3

type Net

type Net interface {
	Query(ctx context.Context, query string) (string, error)
}

Net is interface for GPT network

Jump to

Keyboard shortcuts

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