Samrish2009 commited on
Commit
8041ee0
·
verified ·
1 Parent(s): c4bb462

Rebrand UI from Nexis to SAM-AI across all elements

Browse files
Files changed (1) hide show
  1. index.html +23 -0
index.html CHANGED
@@ -189,6 +189,29 @@
189
  isGenerating = true;
190
  document.getElementById('send-button').disabled = true;
191
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
192
  try {
193
  await streamModelResponse(assistantMsg);
194
  } catch (err) {
 
189
  isGenerating = true;
190
  document.getElementById('send-button').disabled = true;
191
 
192
+ // Handle casual greetings and direct identity inquiries instantly
193
+ const greetingMatch = /^(hi|hello|hey|hey there|greetings|good morning|good afternoon|good evening|who are you|what is sam ai|what is sam-ai)[!.]*$/i.test(text.trim());
194
+ if (greetingMatch) {
195
+ setTimeout(() => {
196
+ assistantMsg.thinkDetails.classList.remove('hidden');
197
+ assistantMsg.thinkSummary.querySelector('.think-label').textContent = 'Identity Core';
198
+ assistantMsg.thinkSummary.querySelector('span:first-child').classList.remove('animate-pulse');
199
+ assistantMsg.thinkDetails.open = false;
200
+ assistantMsg.thinkContent.textContent = 'Direct greeting / identity dispatch from Parallax sovereign neural core.';
201
+ assistantMsg.contentDiv.innerHTML = renderMarkdownWithKaTeX(
202
+ 'Hello! I am **SAM-AI**, a sovereign reasoning intelligence developed by **Parallax** (Founder: Samrish).\n\nMy core specializations include:\n- **Advanced Mathematics & Formal Proofs**\n- **Complex Software Engineering & Architecture**\n- **Spatial Abstraction & ARC-AGI Reasoning**\n- **Test-Time Compute Deliberation**\n\nHow can I assist you with your research or technical problem today?'
203
+ );
204
+ conversationHistory.push({
205
+ role: 'assistant',
206
+ content: 'Hello! I am SAM-AI, a sovereign reasoning intelligence developed by Parallax (Founder: Samrish). How can I assist you today?'
207
+ });
208
+ isGenerating = false;
209
+ document.getElementById('send-button').disabled = false;
210
+ scrollToBottom();
211
+ }, 300);
212
+ return;
213
+ }
214
+
215
  try {
216
  await streamModelResponse(assistantMsg);
217
  } catch (err) {