Skip to main content
Go to Latest
method OpenAI.prototype.createEmbeddings
import { OpenAI } from "https://deno.land/x/commit_genius@v0.4.1/deps.ts";

Creates an embedding vector representing the input text.

https://platform.openai.com/docs/api-reference/embeddings/create

Parameters

options: EmbeddingsOptions

Returns

Promise<Embedding>