Skip to content

@ralphschuler.ai function caller.index.<internal>.OpenAI.Embeddings

github-actions edited this page Nov 26, 2023 · 1 revision

Class: Embeddings

<internal>.OpenAI.Embeddings

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Embeddings(client): Embeddings

Parameters

Name Type
client OpenAI

Returns

Embeddings

Inherited from

APIResource.constructor

Defined in

node_modules/openai/resource.d.ts:4

Properties

_client

Protected _client: OpenAI

Inherited from

APIResource._client

Defined in

node_modules/openai/resource.d.ts:3

Methods

create

create(body, options?): APIPromise<CreateEmbeddingResponse>

Creates an embedding vector representing the input text.

Parameters

Name Type
body EmbeddingCreateParams
options? RequestOptions<Readable | Record<string, unknown>>

Returns

APIPromise<CreateEmbeddingResponse>

Defined in

node_modules/openai/resources/embeddings.d.ts:8

Typescript Libraries

Modules

Namespaces

Clone this wiki locally