Skip to content

Commit 24e3247

Browse files
authored
revert embeddings deprecation (#115)
* Revert "mark `embeddings()` method as deprecated in favor of `embed()` (#111)" This reverts commit 2d31f21. * Change embeddings doc to embed
1 parent fbf9513 commit 24e3247

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/browser.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ async encodeImage(image: Uint8Array | string): Promise<string> {
286286

287287
/**
288288
* Embeds a text prompt into a vector.
289-
* @deprecated Use the `embed` method instead.
290289
* @param request {EmbeddingsRequest} - The request object.
291290
* @returns {Promise<EmbeddingsResponse>} - The response object.
292291
*/

src/interfaces.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,6 @@ export interface EmbedRequest {
150150
options?: Partial<Options>
151151
}
152152

153-
/**
154-
* @deprecated Use the EmbedRequest interface with the embed() method instead.
155-
*/
156153
export interface EmbeddingsRequest {
157154
model: string
158155
prompt: string
@@ -197,9 +194,6 @@ export interface EmbedResponse {
197194
embeddings: number[][]
198195
}
199196

200-
/**
201-
* @deprecated Use the embed() method with the EmbedResponse instead.
202-
*/
203197
export interface EmbeddingsResponse {
204198
embedding: number[]
205199
}

0 commit comments

Comments
 (0)