Documentation ¶ Index ¶ type OpenAI func New(client *oai.Client, model string) *OpenAI func (o *OpenAI) EmbedText(ctx context.Context, text string) ([]float32, error) func (o *OpenAI) EmbedTexts(ctx context.Context, texts ...string) ([][]float32, error) func (o *OpenAI) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type OpenAI ¶ type OpenAI struct { // contains filtered or unexported fields } func New ¶ func New(client *oai.Client, model string) *OpenAI func (*OpenAI) EmbedText ¶ func (o *OpenAI) EmbedText(ctx context.Context, text string) ([]float32, error) func (*OpenAI) EmbedTexts ¶ func (o *OpenAI) EmbedTexts(ctx context.Context, texts ...string) ([][]float32, error) func (*OpenAI) String ¶ func (o *OpenAI) String() string Source Files ¶ View all Source files openai.go Click to show internal directories. Click to hide internal directories.