comate

package
v1.4.3-beta3 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 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 ...any) (string, error)

func (*Client) ChatEx

func (c *Client) ChatEx(details []aispec.ChatDetail, function ...any) ([]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) GetModelList

func (c *Client) GetModelList() ([]*aispec.ModelMeta, error)

func (*Client) LoadOption

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

func (*Client) StructuredStream

func (c *Client) StructuredStream(s string, function ...any) (chan *aispec.StructuredData, error)

func (*Client) SupportedStructuredStream

func (c *Client) SupportedStructuredStream() bool

Jump to

Keyboard shortcuts

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