Skip to content

Commit

Permalink
revert embeddings deprecation (#115)
Browse files Browse the repository at this point in the history
* Revert "mark `embeddings()` method as deprecated in favor of `embed()` (#111)"

This reverts commit 2d31f21.

* Change embeddings doc to embed
  • Loading branch information
BruceMacD authored Jul 19, 2024
1 parent fbf9513 commit 24e3247
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ async encodeImage(image: Uint8Array | string): Promise<string> {

/**
* Embeds a text prompt into a vector.
* @deprecated Use the `embed` method instead.
* @param request {EmbeddingsRequest} - The request object.
* @returns {Promise<EmbeddingsResponse>} - The response object.
*/
Expand Down
6 changes: 0 additions & 6 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,6 @@ export interface EmbedRequest {
options?: Partial<Options>
}

/**
* @deprecated Use the EmbedRequest interface with the embed() method instead.
*/
export interface EmbeddingsRequest {
model: string
prompt: string
Expand Down Expand Up @@ -197,9 +194,6 @@ export interface EmbedResponse {
embeddings: number[][]
}

/**
* @deprecated Use the embed() method with the EmbedResponse instead.
*/
export interface EmbeddingsResponse {
embedding: number[]
}
Expand Down

0 comments on commit 24e3247

Please sign in to comment.