models

package
v2.12.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL