-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
186 lines (171 loc) · 4.95 KB
/
config.json
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
{
"name": "Project MICA",
"namespace": "Stanford\\MICA",
"description": "An EM specific to the MICA project. Chatbot Agent",
"documentation": "README.md",
"authors": [
{
"name": "Irvin Szeto",
"email": "[email protected]",
"institution": "Stanford University"
},
{
"name": "Jordan Schultz",
"email": "[email protected]",
"institution": "Stanford University"
}
],
"framework-version": 14,
"enable-every-page-hooks-on-system-pages": false,
"enable-no-auth-logging": true,
"links": {
"project": [
{
"name": "MICA Chatbot",
"icon": "gear",
"url" : "pages/chatbot.php",
"show-header-and-footer": false
},
{
"name": "Mica Session Admin",
"icon": "gear",
"url" : "pages/sessionSelector.php",
"show-header-and-footer": true
}
],
"control-center": [
]
},
"no-auth-pages": [
"pages/chatbot"
],
"no-auth-ajax-actions": [
"callAI",
"login",
"verifyEmail",
"completeSession",
"fetchSavedQueries"
],
"project-settings": [
{
"key": "chatbot_intro_text",
"name": "Raw text to show in the UI on session start",
"required": true,
"type": "textarea"
},
{
"key": "chatbot_end_session_text",
"name": "Raw text to show in the UI to remind participant to 'end session'",
"required": true,
"type": "textarea"
},
{
"key": "chatbot_system_context_persona",
"name": "Raw text to inject into system context to tune the chatbot's persona",
"required": true,
"type": "textarea"
},
{
"key": "chatbot_system_context_steps",
"name": "Raw text to inject into system context to tune the chatbot's behavior",
"required": true,
"type": "textarea"
},
{
"key": "chatbot_system_context_rules",
"name": "Raw text to inject into system context to tune the chatbot's bounds",
"required": true,
"type": "textarea"
},
{
"key": "enable-project-debug-logging",
"name": "<b>Enable Debug Logging</b><br><i>(optional)</i> Requires installation and configuration of emLogger",
"required": false,
"type": "checkbox"
},
{
"key": "llm-model",
"name": "LLM Model",
"required": false,
"type": "dropdown",
"choices": [
{
"value": "gpt-4o",
"name": "GPT-4o"
},
{
"value": "claude",
"name": "Claude 3.5 Sonnet"
}
],
"default": "gpt-4o"
},
{
"key": "gpt-temperature",
"name": "GPT Temperature",
"required": false,
"type": "number",
"default": 0.7
},
{
"key": "gpt-top-p",
"name": "GPT Top P",
"required": false,
"type": "number",
"default": 0.9
},
{
"key": "gpt-frequency-penalty",
"name": "GPT Frequency Penalty",
"required": false,
"type": "number",
"default": 0.5
},
{
"key": "gpt-presence-penalty",
"name": "GPT Presence Penalty",
"required": false,
"type": "number",
"default": 0
},
{
"key": "gpt-max-tokens",
"name": "GPT Max Tokens",
"required": false,
"type": "number",
"default": 800
}
],
"system-settings": [
{
"key": "enable-system-debug-logging",
"name": "<b>Enable Debug Logging (system-wide)</b><i>(optional)</i> Requires installation and configuration of emLogger",
"required": false,
"type": "checkbox"
},
{
"key": "twilio-sid",
"name": "<b>Twilio SID</b>",
"required": true,
"type" : "text"
},
{
"key": "twilio-auth-token",
"name": "<b>Twilio Auth token</b>",
"required": true,
"type" : "text"
},
{
"key": "twilio-from-number",
"name": "<b>Twilio From Number </b><br><i>e.g +16124823490</i>",
"required": true,
"type" : "text"
}
],
"compatibility": {
"php-version-min": "",
"php-version-max": "",
"redcap-version-min": "",
"redcap-version-max": ""
}
}