You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constresponseText=awaitcallAI(prompt,"You are a concise, highly knowledgeable, friendly tutor helping a university student. Keep answers under 3 short paragraphs. Use analogies.");
168
165
res.json({reply: responseText.trim()});
169
166
}catch(e){
170
-
if(e.message==='API_KEY_MISSING'){
167
+
if(e.message.includes('API_KEY_MISSING')){
171
168
res.json({reply: "I'm currently in **Demonstration Mode**. Please configure the `GEMINI_API_KEY` to enable my full intelligence."});
res.json({reply: "My Gemini API quota has been exhausted temporarily! 🚀\n\nWhile I wait for the rate limit to reset, I highly recommend checking out your **AI Arsenal** (in the sidebar)! We recently upgraded its tools to run on indestructible local algorithms, so they work beautifully even when I'm offline."});
172
171
}else{
173
-
if(message.includes("Give me one short")){
174
-
res.json({reply: "Discipline is choosing between what you want now and what you want most. Open your planner and let's go!"});
175
-
}else{
176
-
res.json({reply: "My server API link is resetting to protect quotas! But don't worry—your local AI Arsenal tools are still perfectly functional right now."});
177
-
}
172
+
res.json({reply: "My Gemini API is taking a quick nap (rate limit/connection issue). While I wake up, jump into the **AI Arsenal**—it uses backup algorithms so it never goes offline!"});
0 commit comments