Documentation
¶
Index ¶
- type Client
- func (c *Client) BuildHTTPOptions() ([]poc.PocConfigOption, error)
- func (c *Client) Chat(s string, function ...aispec.Function) (string, error)
- func (c *Client) ChatEx(details []aispec.ChatDetail, function ...aispec.Function) ([]aispec.ChatChoice, error)
- func (c *Client) ChatStream(s string) (io.Reader, error)
- func (c *Client) CheckValid() error
- func (c *Client) ExtractData(data string, desc string, fields map[string]any) (map[string]any, error)
- func (c *Client) LoadOption(opt ...aispec.AIConfigOption)
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) ChatEx ¶
func (c *Client) ChatEx(details []aispec.ChatDetail, function ...aispec.Function) ([]aispec.ChatChoice, error)
func (*Client) CheckValid ¶
func (*Client) ExtractData ¶
func (*Client) LoadOption ¶
func (c *Client) LoadOption(opt ...aispec.AIConfigOption)
Click to show internal directories.
Click to hide internal directories.