tongyi

package
v1.3.5-alpha0819 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetawayClient

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

func (*GetawayClient) BuildHTTPOptions

func (g *GetawayClient) BuildHTTPOptions() ([]poc.PocConfigOption, error)

func (*GetawayClient) Chat

func (g *GetawayClient) Chat(s string, function ...aispec.Function) (string, error)

func (*GetawayClient) ChatEx

func (g *GetawayClient) ChatEx(details []aispec.ChatDetail, function ...aispec.Function) ([]aispec.ChatChoice, error)

func (*GetawayClient) ChatStream

func (g *GetawayClient) ChatStream(s string) (io.Reader, error)

func (*GetawayClient) CheckValid

func (g *GetawayClient) CheckValid() error

func (*GetawayClient) ExtractData

func (g *GetawayClient) ExtractData(data string, desc string, fields map[string]any) (map[string]any, error)

func (*GetawayClient) LoadOption

func (g *GetawayClient) LoadOption(opt ...aispec.AIConfigOption)

Jump to

Keyboard shortcuts

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