Documentation ¶
Index ¶
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 NewClient ¶
func NewClient(opts ...option.RequestOption) *Client
func (*Client) Get ¶ added in v2.7.1
func (c *Client) Get( ctx context.Context, model string, opts ...option.RequestOption, ) (*v2.GetModelResponse, error)
Returns the details of a model, provided its name.
func (*Client) List ¶
func (c *Client) List( ctx context.Context, request *v2.ModelsListRequest, opts ...option.RequestOption, ) (*v2.ListModelsResponse, error)
Returns a list of models available for use. The list contains models from Cohere as well as your fine-tuned models.
Click to show internal directories.
Click to hide internal directories.