Skip to content
Prev Previous commit
Next Next commit
ref(deepinfra): remove redundant cast
  • Loading branch information
ovuruska committed May 22, 2024
commit 87e5977de62b37d61dbef314ba9ec9b82d76f053
2 changes: 1 addition & 1 deletion libs/langchain-community/src/embeddings/deepinfra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class DeepInfraEmbeddings
* @returns A Promise that resolves to an array of embeddings.
*/
async embedDocuments(inputs: string[]): Promise<number[][]> {
const batches = chunkArray(inputs, this.batchSize) as string[][];
const batches = chunkArray(inputs, this.batchSize);

const batchRequests = batches.map((batch: string[]) =>
this.embeddingWithRetry({
Expand Down