-
-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathtest-fallback.ts
More file actions
20 lines (17 loc) · 661 Bytes
/
test-fallback.ts
File metadata and controls
20 lines (17 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { runWebScholar } from "./src/scholar/webScholar.js";
import { PRISM_SCHOLAR_TOPICS } from "./src/config.js";
// Force API keys empty inside the process env overrides if they were set
process.env.BRAVE_API_KEY = "";
process.env.FIRECRAWL_API_KEY = "";
// Ensure topics are set
if (!PRISM_SCHOLAR_TOPICS || PRISM_SCHOLAR_TOPICS.length === 0) {
process.env.PRISM_SCHOLAR_TOPICS = "quantum computing";
}
console.log("Starting Web Scholar without API keys...");
runWebScholar().then(() => {
console.log("Finished Web Scholar fallback test.");
process.exit(0);
}).catch(err => {
console.error("Test failed:", err);
process.exit(1);
});