Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed Mar 27, 2024
1 parent 64348ba commit ce06649
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions libs/langchain-azure-openai/src/embeddings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,17 +144,13 @@ export class AzureOpenAIEmbeddings
const deploymentName = this.azureOpenAIApiDeploymentName || this.modelName;

const res = await this.caller.call(() =>
this.client.getEmbeddings(
deploymentName,
input,
{
user: this.user,
model: this.modelName,
requestOptions: {
timeout: this.timeout,
},
}
)
this.client.getEmbeddings(deploymentName, input, {
user: this.user,
model: this.modelName,
requestOptions: {
timeout: this.timeout,
},
})
);

return res.data[0].embedding;
Expand Down

0 comments on commit ce06649

Please sign in to comment.