Skip to content

Commit

Permalink
Update embedding.js
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Dec 1, 2024
1 parent 43d30c8 commit e8cbf09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/services/embedding.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ export class EmbeddingService {

const newEmbeddingVectors = await Promise.all(formattedTexts.map(async (text) => {
const response = await openai.embeddings.create({
model: MODEL_EMBEDDING,
model: process.env.MODEL_EMBEDDING,
input: text,
});
return response.data[0].embedding;
Expand Down

0 comments on commit e8cbf09

Please sign in to comment.