Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions public/Assets/Style/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,7 @@
color: #9eb5f7;
transition: all 0.5s ease;
}

a {
transition: all 0.5s ease;
}

a:visited {
color: #007bff;
transition: all 0.5s ease;
}

a:hover {
color: #9eb5f7;
transition: all 0.5s ease;
}


::-webkit-scrollbar {
width: 10px;
Expand Down Expand Up @@ -85,10 +72,6 @@ nav {
font-family: "Ubuntu", sans-serif;
}

nav.sticky {
background: #377a77;
}

nav .navbar {
width: 90%;
display: flex;
Expand Down
11 changes: 1 addition & 10 deletions routes/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,16 +359,7 @@ router.post('/api/bot-chat', async (req, res) => {
conversationHistory.push({ role: "user", parts: [{ text: userMessage }] });

let geminiApiKey;
if (req.session.user.username === "ibnekhalid") {
geminiApiKey = process.env.GEMINI_API_KEY_ibnekhalid;
}
else if (req.session.user.username === "maaz.waheed") {
geminiApiKey = process.env.GEMINI_API_KEY_maaz_waheed;
}
else {
const aiResponseText = "User not authorized to access Gemini API.";
res.json({ aiResponse: aiResponseText, newChatId: req.newChatId });
}
geminiApiKey = process.env.GEMINI_API_KEY_maaz_waheed;

if (!geminiApiKey) {
return res.status(500).json({ error: "Gemini API key not configured." });
Expand Down
Loading