Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) GetApiKeyHash(ctx context.Context, config moduletools.ClassConfig) [32]byte
- func (c *Client) GetVectorizerRateLimit(ctx context.Context, cfg moduletools.ClassConfig) *modulecomponents.RateLimits
- func (c *Client) HasTokenLimit() bool
- func (c *Client) ReturnsRateLimit() bool
- func (c *Client) Vectorize(ctx context.Context, inputs []string, settings Settings) (*modulecomponents.VectorizationResult, error)
- type InputType
- type Settings
Constants ¶
View Source
const ( DefaultRPM = 10000 // from https://docs.cohere.com/docs/going-live#production-key-specifications default for production keys DefaultTPM = 10000000 // no token limit used by cohere )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetApiKeyHash ¶
func (c *Client) GetApiKeyHash(ctx context.Context, config moduletools.ClassConfig) [32]byte
func (*Client) GetVectorizerRateLimit ¶
func (c *Client) GetVectorizerRateLimit(ctx context.Context, cfg moduletools.ClassConfig) *modulecomponents.RateLimits
func (*Client) HasTokenLimit ¶
func (*Client) ReturnsRateLimit ¶
func (*Client) Vectorize ¶
func (c *Client) Vectorize(ctx context.Context, inputs []string, settings Settings, ) (*modulecomponents.VectorizationResult, error)
Click to show internal directories.
Click to hide internal directories.