Documentation
¶
Index ¶
- type Client
- func (c *Client) ChatCompletion(ctx context.Context, request model.ChatCompletionRequest) (res model.ChatCompletionResponse, err error)
- func (c *Client) ChatCompletionStream(ctx context.Context, request model.ChatCompletionRequest) (responseChan chan *model.ChatCompletionResponse, err error)
- func (c *Client) Image(ctx context.Context, request model.ImageRequest) (res model.ImageResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { AppId string `json:"appid"` Key string `json:"key"` Secret string `json:"secret"` OriginalURL string `json:"original_url"` BaseURL string `json:"base_url"` Path string `json:"path"` ProxyURL string `json:"proxy_url"` Domain string `json:"domain"` }
func (*Client) ChatCompletion ¶
func (c *Client) ChatCompletion(ctx context.Context, request model.ChatCompletionRequest) (res model.ChatCompletionResponse, err error)
func (*Client) ChatCompletionStream ¶
func (c *Client) ChatCompletionStream(ctx context.Context, request model.ChatCompletionRequest) (responseChan chan *model.ChatCompletionResponse, err error)
func (*Client) Image ¶
func (c *Client) Image(ctx context.Context, request model.ImageRequest) (res model.ImageResponse, err error)
Click to show internal directories.
Click to hide internal directories.