Documentation
¶
Index ¶
- type Client
- func (c *Client) BuildHTTPOptions() ([]poc.PocConfigOption, error)
- func (c *Client) Chat(s string, function ...any) (string, error)
- func (c *Client) ChatEx(details []aispec.ChatDetail, function ...any) ([]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) GetModelList() ([]*aispec.ModelMeta, error)
- func (c *Client) LoadOption(opt ...aispec.AIConfigOption)
- func (c *Client) StructuredStream(s string, function ...any) (chan *aispec.StructuredData, error)
- func (c *Client) SupportedStructuredStream() bool
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 ...any) ([]aispec.ChatChoice, error)
func (*Client) CheckValid ¶
func (*Client) ExtractData ¶
func (*Client) LoadOption ¶
func (c *Client) LoadOption(opt ...aispec.AIConfigOption)
func (*Client) StructuredStream ¶
func (*Client) SupportedStructuredStream ¶
Click to show internal directories.
Click to hide internal directories.