Skip to content

Commit

Permalink
fix: change type
Browse files Browse the repository at this point in the history
  • Loading branch information
xavidop committed Oct 22, 2024
1 parent 84208e4 commit 4cb35d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/github_embedders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function githubEmbedder(name: string, options?: PluginOptions) {
.post(body)) as GetEmbeddings200Response;
return {
embeddings: embeddings.body.data.map((d) => ({
embedding: d.embedding,
embedding: Array.isArray(d.embedding) ? d.embedding : [],
})),
};
},
Expand Down

0 comments on commit 4cb35d4

Please sign in to comment.