From 24e3247ba7199389ce33ee76924482230dcd9061 Mon Sep 17 00:00:00 2001 From: Bruce MacDonald Date: Fri, 19 Jul 2024 18:07:26 +0000 Subject: [PATCH] revert embeddings deprecation (#115) * Revert "mark `embeddings()` method as deprecated in favor of `embed()` (#111)" This reverts commit 2d31f216a98ce495da36ce5502b55afdc24a7902. * Change embeddings doc to embed --- src/browser.ts | 1 - src/interfaces.ts | 6 ------ 2 files changed, 7 deletions(-) diff --git a/src/browser.ts b/src/browser.ts index d83e25e..40ba369 100644 --- a/src/browser.ts +++ b/src/browser.ts @@ -286,7 +286,6 @@ async encodeImage(image: Uint8Array | string): Promise { /** * Embeds a text prompt into a vector. - * @deprecated Use the `embed` method instead. * @param request {EmbeddingsRequest} - The request object. * @returns {Promise} - The response object. */ diff --git a/src/interfaces.ts b/src/interfaces.ts index dca0e7b..af7f4d6 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -150,9 +150,6 @@ export interface EmbedRequest { options?: Partial } -/** - * @deprecated Use the EmbedRequest interface with the embed() method instead. - */ export interface EmbeddingsRequest { model: string prompt: string @@ -197,9 +194,6 @@ export interface EmbedResponse { embeddings: number[][] } -/** - * @deprecated Use the embed() method with the EmbedResponse instead. - */ export interface EmbeddingsResponse { embedding: number[] }