Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
method OpenAI.prototype.createEmbeddings
import { OpenAI } from "https://deno.land/x/commit_genius@v0.5.0/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>