Documentation
¶
Index ¶
- type GetawayClient
- func (g *GetawayClient) BuildHTTPOptions() ([]poc.PocConfigOption, error)
- func (g *GetawayClient) Chat(s string, function ...any) (string, error)
- func (g *GetawayClient) ChatStream(s string) (io.Reader, error)
- func (g *GetawayClient) CheckValid() error
- func (g *GetawayClient) ExtractData(msg string, desc string, fields map[string]any) (map[string]any, error)
- func (g *GetawayClient) GetModelList() ([]*aispec.ModelMeta, error)
- func (g *GetawayClient) LoadOption(opt ...aispec.AIConfigOption)
- func (g *GetawayClient) StructuredStream(s string, function ...any) (chan *aispec.StructuredData, error)
- func (g *GetawayClient) SupportedStructuredStream() bool
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 ...any) (string, error)
func (*GetawayClient) ChatStream ¶
func (g *GetawayClient) ChatStream(s string) (io.Reader, error)
func (*GetawayClient) CheckValid ¶ added in v1.3.3
func (g *GetawayClient) CheckValid() error
func (*GetawayClient) ExtractData ¶
func (*GetawayClient) GetModelList ¶
func (g *GetawayClient) GetModelList() ([]*aispec.ModelMeta, error)
func (*GetawayClient) LoadOption ¶
func (g *GetawayClient) LoadOption(opt ...aispec.AIConfigOption)
func (*GetawayClient) StructuredStream ¶
func (g *GetawayClient) StructuredStream(s string, function ...any) (chan *aispec.StructuredData, error)
func (*GetawayClient) SupportedStructuredStream ¶
func (g *GetawayClient) SupportedStructuredStream() bool
Click to show internal directories.
Click to hide internal directories.