-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
42 lines (37 loc) · 1.42 KB
/
config.js
File metadata and controls
42 lines (37 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// TOEFL Practice Configuration
const config = {
// OpenRouter API Settings
apiKey: "", // Your OpenRouter API key
model: "anthropic/claude-3.7-sonnet", // OpenRouter model ID
apiUrl: "https://openrouter.ai/api/v1/chat/completions",
// Prompt Templates
systemPrompt: "You are an expert TOEFL exam creator. Create high-quality TOEFL reading comprehension questions based on the provided passage. Format your response in valid JSON following the specified structure.",
// Default number of questions
defaultQuestionCount: 10,
// Question types to include
questionTypes: [
'main idea', 'detail', 'inference', 'vocabulary',
'rhetorical purpose', 'reference', 'paraphrase'
],
// Example format to request in the prompt
exampleFormat: `
[
{
"type": "main idea",
"text": "What is the main idea of the passage?",
"options": [
"Option 1",
"Option 2",
"Option 3",
"Option 4"
],
"correctAnswer": 0,
"explanation": "Option 1 is correct because it accurately summarizes the main focus of the passage. Option 2 is incorrect because the passage does not criticize theories. Option 3 is incorrect because the passage is not primarily historical. Option 4 is incorrect because the passage does not focus on comparing perspectives."
}
]
`
};
// Export the configuration object
if (typeof module !== 'undefined') {
module.exports = config;
}