Skip to content

Commit 795c1ca

Browse files
committed
Refactored to use single EMBEDDING_API_KEY for all providers
1 parent 3d5bccd commit 795c1ca

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

examples/basic-usage.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
// examples/basic-usage.js
21
import { MongoRAG } from '../src/index.js';
32
import dotenv from 'dotenv';
43

54
// Load environment variables
65
dotenv.config();
76

87
// Debug loading of environment variables
9-
console.log('Environment variables loaded:', {
8+
console.log('Loaded ENV:', {
109
mongoUri: process.env.MONGODB_URI ? 'Set' : 'Not set',
1110
provider: process.env.EMBEDDING_PROVIDER || 'openai',
1211
apiKey: process.env.EMBEDDING_API_KEY ? 'Set' : 'Not set'

src/core/MongoRAG.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ class MongoRAG {
213213
}
214214
}
215215
}
216-
217216

218217
}
219218

0 commit comments

Comments
 (0)