Documentation
¶
Overview ¶
Package embedding contains a client for Open AI's Embeddings APIs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // CreateEndpoint allows overriding the default API endpoint. // Set this field before using the client. CreateEndpoint string // contains filtered or unexported fields }
Client is a client to communicate with Open AI's Embeddings APIs.
func NewClient ¶
NewClient creates a new default client that uses the given session and defaults to the given model.
func (*Client) Create ¶
func (c *Client) Create(ctx context.Context, p *CreateParams) (*CreateResponse, error)
type CreateParams ¶
type CreateResponse ¶
Click to show internal directories.
Click to hide internal directories.