Versions in this module Expand all Collapse all v0 v0.5.0 Nov 7, 2024 Changes in this version + var AwsModelIDMap = map[string]string + type Client struct + func NewAwsClient(ctx context.Context, model, key, baseURL, path string, ...) *Client + func NewClient(ctx context.Context, model, key, baseURL, path string, ...) *Client + func NewGcpClient(ctx context.Context, model, key, baseURL, path string, ...) *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) + func (c *Client) Speech(ctx context.Context, request model.SpeechRequest) (res model.SpeechResponse, err error) + func (c *Client) Transcription(ctx context.Context, request model.AudioRequest) (res model.AudioResponse, err error)