comate

package
v1.3.4-alpha4 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func (*Client) BuildHTTPOptions

func (c *Client) BuildHTTPOptions() ([]poc.PocConfigOption, error)

func (*Client) Chat

func (c *Client) Chat(s string, function ...aispec.Function) (string, error)

func (*Client) ChatEx

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

func (*Client) ChatStream

func (c *Client) ChatStream(s string) (io.Reader, error)

func (*Client) CheckValid

func (c *Client) CheckValid() error

func (*Client) ExtractData

func (c *Client) ExtractData(data string, desc string, fields map[string]any) (map[string]any, error)

func (*Client) LoadOption

func (c *Client) LoadOption(opt ...aispec.AIConfigOption)

Jump to

Keyboard shortcuts

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