Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/embeddings.ts>Embeddings

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
namespace Embeddings
import { Embeddings } from "https://deno.land/x/openai@v4.33.1/resources/embeddings.ts";
class Embeddings
extends APIResource
import { Embeddings } from "https://deno.land/x/openai@v4.33.1/resources/embeddings.ts";

Methods

create(body: EmbeddingCreateParams, options?: Core.RequestOptions): Core.APIPromise<CreateEmbeddingResponse>

Creates an embedding vector representing the input text.