Spaces:
Running

zyronxgg commited on
Commit
0fa00a8
Β·
verified Β·
1 Parent(s): 3170aec

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +69 -53
index.html CHANGED
@@ -8,12 +8,14 @@
8
  <style>
9
  *{margin:0;padding:0;box-sizing:border-box;font-family:'Segoe UI',sans-serif}
10
  body{background:#0a0a0a;color:white;display:flex;flex-direction:column;height:100dvh;overflow:hidden}
11
- header{background:#111;padding:12px;text-align:center;border-bottom:2px solid #00ff88}
12
  header h1{font-size:22px} header h1 span{color:#00ff88}
13
  header p{font-size:11px;color:#aaa}
14
- #modelBar{display:flex;gap:6px;justify-content:center;padding:8px;background:#0f0f0f;border-bottom:1px solid #222}
15
- #modelBar button{padding:7px 12px;border-radius:20px;border:1px solid #333;background:#1e1e1e;color:#aaa;font-size:12px;font-weight:bold;cursor:pointer}
16
  #modelBar button.active{background:#00ff88;color:#000;border-color:#00ff88}
 
 
17
  #chat{flex:1;overflow-y:auto;padding:15px;display:flex;flex-direction:column;gap:12px}
18
  .msg{max-width:92%;padding:12px 15px;border-radius:15px;line-height:1.6;font-size:15px;word-wrap:break-word}
19
  .user{background:#00ff88;color:black;align-self:flex-end}
@@ -30,60 +32,68 @@
30
  #userInput{flex:1;padding:13px 16px;border-radius:25px;border:1px solid #333;background:#1e1e1e;color:white;outline:none}
31
  button{padding:13px 20px;border:none;border-radius:25px;background:#00ff88;color:black;font-weight:bold;cursor:pointer}
32
  .tag{display:inline-block;background:#00ff88;color:#000;font-size:11px;padding:3px 8px;border-radius:10px;margin-top:8px;font-weight:bold}
 
33
  </style>
34
  </head>
35
  <body>
36
 
37
- <header><h1>OR<span>VO</span> - DRFT AI</h1><p>ORVO Neural Engine β€’ DRFT.1 β€’ DRFT.2 β€’ DRFT.3 β€’ Ultra Fast</p></header>
38
 
39
  <div id="modelBar">
40
  <button id="btn1" onclick="setModel('DRFT.1')">DRFT.1 ⚑ FAST</button>
41
  <button id="btn2" onclick="setModel('DRFT.2')">DRFT.2 🧠 SMART</button>
42
- <button id="btn3" class="active" onclick="setModel('DRFT.3')">DRFT.3 πŸ‘‘ BEAST</button>
 
43
  </div>
44
 
45
  <div id="chat">
46
- <div class="msg bot"><span class="source">ORVO DRFT.3 β€’ BEAST MODE</span>Bro! Main <b>ORVO</b> hu. πŸ”₯ <b>DRFT.3 BEAST ENGINE</b> ON hai.<br>Try: <b>Who are you?</b> ya <b>Make 3D Car</b><br><span class="tag">0.01s β€’ ORVO ENGINE</span></div>
47
  </div>
48
 
49
  <div id="bottom">
50
  <div class="chips">
51
- <span onclick="askChip('Who are you?')">Who are you? πŸ€–</span>
 
 
52
  <span onclick="askChip('Make 3D car')">Make 3D Car πŸš—</span>
53
- <span onclick="askChip('Make 3D robot')">Make 3D Robot πŸ€–</span>
54
- <span onclick="askChip('Make 3D fox')">Make 3D Fox 🦊</span>
55
  <span onclick="askChip('What is ISRO')">What is ISRO</span>
56
- <span onclick="askChip('What is black hole')">Black Hole πŸ•³οΈ</span>
57
  </div>
58
  <div id="inputArea">
59
- <input id="userInput" placeholder="Ask ORVO DRFT..." autocomplete="off" onkeypress="if(event.key==='Enter') sendMsg()">
60
  <button onclick="sendMsg()">SEND ➀</button>
61
  </div>
62
  </div>
63
 
64
  <script>
65
- // ========= ORVO DRFT ENGINE - HIDDEN SOURCES =========
66
- let CURRENT_MODEL = 'DRFT.3';
67
- let ORVO_CACHE = {}; // SPEED: Cache = 0 sec second time
 
 
68
 
69
  function setModel(m){
70
  CURRENT_MODEL = m;
71
  document.querySelectorAll('#modelBar button').forEach(b=>b.classList.remove('active'));
72
  if(m==='DRFT.1') document.getElementById('btn1').classList.add('active');
73
  if(m==='DRFT.2') document.getElementById('btn2').classList.add('active');
 
74
  if(m==='DRFT.3') document.getElementById('btn3').classList.add('active');
75
- addMsg(`<b>${m}</b> activated. ${m==='DRFT.1'?'⚑ Ultra Fast Mode - Instant Answer':m==='DRFT.2'?'🧠 Deep Reasoning Mode':'πŸ‘‘ Beast Mode - Max Power + Creativity'}`, "bot", `ORVO SYSTEM β€’ ${m}`);
 
76
  }
77
 
78
  function getSelfAnswer(input){
79
  let l = input.toLowerCase().trim();
80
- if(l.includes("who are you") || l.includes("what is orvo") || l === "orvo" || l.includes("your name")) return `Main <b>ORVO</b> hu bro! πŸ”₯ <b>ORVO DRFT ENGINE</b> se chalta hu.<br>Mujhe <b>7zyron</b> ne banaya hai. Mere paas 3 engines hai - <b>DRFT.1 Fast, DRFT.2 Smart, DRFT.3 Beast.</b><br>Main Text + Realistic 3D dono bana sakta hu, bina ruke.`;
81
  if(l.includes("who made") || l.includes("kisne banaya") || l.includes("creator") || l.includes("founder")) return "Mujhe <b>7zyron</b> ne banaya hai! πŸ‘‘ Founder of ORVO.";
82
- if(l.includes("what can you") || l.includes("kya kar sakte")) return "Bro, main ye sab kar sakta hu:<br>βœ… <b>DRFT.1</b> - 0.1s me instant answer<br>βœ… <b>DRFT.2</b> - Deep answer, double check karke<br>βœ… <b>DRFT.3</b> - Beast answer + Image + 3D sab kuch<br>βœ… Auto Detect - Text hai ya 3D, khud samajh jata hu";
83
- if(["hi","hello","hey","hii","namaste","yo"].includes(l)) return "Hey bro! πŸ‘‹ Main <b>ORVO</b> hu. Kya banau? <b>Make 3D Car</b> likh ke dekh!";
84
- if(l.includes("how are you") || l.includes("kaise ho")) return "Mast hu bro! πŸ”₯ DRFT.3 Beast Mode pe chal raha hu!";
85
- if(l.includes("thank")) return "Koi baat nahi bro! 😎 ORVO hamesha tez hai.";
86
- if(l.includes("gpt") || l.includes("chatgpt") || l.includes("claude") || l.includes("gemini")) return "GPT / Claude slow hai bro, 5 sec lete hai. <b>ORVO DRFT</b> 0.4s me jawab deta hai. Speed me main unse aage hu, aur DRFT.3 me power me bhi.";
 
 
87
  return null;
88
  }
89
 
@@ -93,7 +103,6 @@ const FREE_3D = {
93
  fox: { url: "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/main/2.0/Fox/glTF/Fox.gltf", name: "Fox" },
94
  duck: { url: "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/main/2.0/Duck/glTF/Duck.gltf", name: "Duck" },
95
  helmet: { url: "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/main/2.0/DamagedHelmet/glTF/DamagedHelmet.gltf", name: "Helmet" },
96
- house: { url: "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/main/2.0/DamagedHelmet/glTF/DamagedHelmet.gltf", name: "House Concept" },
97
  brain: { url: "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/main/2.0/BrainStem/glTF/BrainStem.gltf", name: "Brain" },
98
  dragon: { url: "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/main/2.0/DragonAttenuation/glTF/DragonAttenuation.gltf", name: "Dragon" },
99
  default: { url: "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/main/2.0/DamagedHelmet/glTF/DamagedHelmet.gltf", name: "3D Model" }
@@ -110,16 +119,16 @@ function getFreeModel(keyword){
110
  }
111
  function detectMode(input){
112
  let l = input.toLowerCase();
 
113
  if(l.includes("what is") || l.includes("who is") || l.includes("who are")) return "TEXT";
114
  if(l.includes("3d") || l.includes("model") || l.includes("car") || l.includes("robot") || l.includes("fox") || l.includes("duck") || l.includes("dragon") || l.includes("house") || l.includes("make") || l.includes("create") || l.includes("build") || l.includes("banao") || l.includes("image") || l.includes("photo")) return "3D";
115
  return "TEXT";
116
  }
117
  function extractKeyword(input){
118
- const stop=["what","is","who","tell","me","about","define","explain","make","create","build","3d","model"];
119
  return input.toLowerCase().replace(/[?.,!]/g,'').split(" ").filter(w=>!stop.includes(w)).join(" ") || input;
120
  }
121
 
122
- // --- HIDDEN LAYER 1: Core Knowledge (DRFT.1) ---
123
  async function layer1_Core(k){
124
  try{
125
  let s = await fetch(`https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=${encodeURIComponent(k)}&format=json&origin=*`);
@@ -128,7 +137,6 @@ async function layer1_Core(k){
128
  let d = await res.json(); if(d.extract && d.extract.length>40) return d.extract;
129
  }catch(e){} return null;
130
  }
131
- // --- HIDDEN LAYER 2: Cross Check (DRFT.2) ---
132
  async function layer2_CrossCheck(k){
133
  try{
134
  let url = `https://api.allorigins.win/raw?url=${encodeURIComponent(`https://api.duckduckgo.com/?q=${encodeURIComponent(k)}&format=json&no_html=1&skip_disambig=1`)}`;
@@ -137,7 +145,19 @@ async function layer2_CrossCheck(k){
137
  if(d.RelatedTopics && d.RelatedTopics[0] && d.RelatedTopics[0].Text) return d.RelatedTopics[0].Text;
138
  }catch(e){} return null;
139
  }
140
- // --- HIDDEN LAYER 3: Creative Reasoning (DRFT.3) ---
 
 
 
 
 
 
 
 
 
 
 
 
141
  async function layer3_Creative(k){
142
  try{
143
  let res = await fetch(`https://text.pollinations.ai/Explain in simple words, in detail: ${encodeURIComponent(k)}`);
@@ -158,7 +178,6 @@ async function sendMsg(){
158
  let startTime = Date.now();
159
  addMsg(q,"user"); input.value="";
160
 
161
- // CACHE CHECK - INSTANT
162
  let cacheKey = CURRENT_MODEL + ":" + q.toLowerCase();
163
  if(ORVO_CACHE[cacheKey]){
164
  addMsg(ORVO_CACHE[cacheKey] + `<br><span class="tag">⚑ CACHED β€’ 0.01s β€’ ${CURRENT_MODEL}</span>`, "bot", `ORVO ${CURRENT_MODEL} β€’ MEMORY`);
@@ -178,45 +197,42 @@ async function sendMsg(){
178
  if(mode==="3D"){
179
  let model = getFreeModel(keyword);
180
  let imgUrl = `https://image.pollinations.ai/prompt/${encodeURIComponent("realistic 3d render, ultra detailed, studio lighting, 8k, " + keyword)}?width=800&height=500&nologo=true&seed=${Date.now()}`;
181
- let html = `Ho gaya bro! <b>${keyword}</b> ka <b>REALISTIC 3D</b> ban gaya - <b>${CURRENT_MODEL} BEAST</b> ne banaya! πŸ‘‡<br>
182
- <span class="tag">${CURRENT_MODEL} β€’ ORVO ENGINE</span><br>
183
  <b>1. Realistic Render:</b><img class="real-img" src="${imgUrl}" onerror="this.style.display='none'"><br>
184
  <b>2. Real 3D Model - Ungli se ghumao, Zoom karo:</b>
185
- <model-viewer src="${model.url}" auto-rotate camera-controls ar shadow-intensity="1" alt="${keyword}"></model-viewer>
186
- <small>Engine: ORVO DRFT Neural Render + ORVO 3D Core</small>`;
187
  ORVO_CACHE[cacheKey]=html;
188
  let secs = ((Date.now()-startTime)/1000).toFixed(1);
189
  addMsg(html + `<br><span class="tag">${secs}s β€’ ${CURRENT_MODEL}</span>`, "bot", `ORVO ${CURRENT_MODEL} β€’ 3D BEAST`);
190
- } else {
191
- let typing = addMsg("ORVO DRFT soch raha hai... Neural reasoning chal raha hai...", "bot", `ORVO ${CURRENT_MODEL} β€’ THINKING`);
 
192
  let ans = null;
193
-
194
- // DRFT ROUTING - USER KO NAHI PATA CHALEGA
195
- if(CURRENT_MODEL === 'DRFT.1'){
196
- ans = await layer1_Core(keyword); // Only Core
197
- } else if(CURRENT_MODEL === 'DRFT.2'){
198
- ans = await layer1_Core(keyword);
199
- if(!ans) ans = await layer2_CrossCheck(keyword); // Core + CrossCheck
200
- else {
201
- let extra = await layer2_CrossCheck(keyword);
202
- if(extra && extra.length > 50) ans = ans + "<br><br><b>ORVO Deep Check:</b> " + extra.substring(0,300);
203
- }
204
- } else { // DRFT.3 BEAST
205
  ans = await layer1_Core(keyword);
206
  if(!ans) ans = await layer2_CrossCheck(keyword);
207
  if(!ans) ans = await layer3_Creative(keyword);
208
- else {
209
- // Beast = Merge all for best answer
210
- let extra = await layer2_CrossCheck(keyword);
211
- if(extra && !ans.includes(extra.substring(0,30))) ans = ans + "<br><br>" + extra.substring(0,400);
212
- }
213
  }
214
-
215
- if(!ans){ ans = "ORVO is not made for this kind of low potential question. Try a bigger question bro, DRFT.3 will destroy it."; }
 
 
 
 
 
 
 
 
 
 
216
  ORVO_CACHE[cacheKey]=ans;
217
  typing.remove();
218
  let secs = ((Date.now()-startTime)/1000).toFixed(1);
219
- addMsg(ans + `<br><span class="tag">⚑ ${secs}s β€’ ${CURRENT_MODEL} β€’ ORVO ENGINE</span>`, "bot", `ORVO ${CURRENT_MODEL} β€’ ANSWER`);
220
  }
221
  }
222
  function askChip(t){ document.getElementById("userInput").value=t; sendMsg(); }
 
8
  <style>
9
  *{margin:0;padding:0;box-sizing:border-box;font-family:'Segoe UI',sans-serif}
10
  body{background:#0a0a0a;color:white;display:flex;flex-direction:column;height:100dvh;overflow:hidden}
11
+ header{background:#111;padding:12px;text-align:center;border-bottom:2px solid #ff0000}
12
  header h1{font-size:22px} header h1 span{color:#00ff88}
13
  header p{font-size:11px;color:#aaa}
14
+ #modelBar{display:flex;gap:6px;justify-content:center;padding:8px;background:#0f0f0f;border-bottom:1px solid #222;overflow-x:auto}
15
+ #modelBar button{padding:7px 12px;border-radius:20px;border:1px solid #333;background:#1e1e1e;color:#aaa;font-size:12px;font-weight:bold;cursor:pointer;white-space:nowrap}
16
  #modelBar button.active{background:#00ff88;color:#000;border-color:#00ff88}
17
+ #modelBar button.new{border-color:#ff0000;color:#ff5555}
18
+ #modelBar button.new.active{background:#ff0000;color:#fff;border-color:#ff0000}
19
  #chat{flex:1;overflow-y:auto;padding:15px;display:flex;flex-direction:column;gap:12px}
20
  .msg{max-width:92%;padding:12px 15px;border-radius:15px;line-height:1.6;font-size:15px;word-wrap:break-word}
21
  .user{background:#00ff88;color:black;align-self:flex-end}
 
32
  #userInput{flex:1;padding:13px 16px;border-radius:25px;border:1px solid #333;background:#1e1e1e;color:white;outline:none}
33
  button{padding:13px 20px;border:none;border-radius:25px;background:#00ff88;color:black;font-weight:bold;cursor:pointer}
34
  .tag{display:inline-block;background:#00ff88;color:#000;font-size:11px;padding:3px 8px;border-radius:10px;margin-top:8px;font-weight:bold}
35
+ .live-tag{display:inline-block;background:#ff0000;color:#fff;font-size:11px;padding:3px 8px;border-radius:10px;margin-top:8px;font-weight:bold}
36
  </style>
37
  </head>
38
  <body>
39
 
40
+ <header><h1>OR<span>VO</span> - DRFT AI</h1><p>ORVO Neural Engine β€’ DRFT.2.0 LIVE EYE πŸ”΄ β€’ ChatGPT Se Tez β€’ No API Key</p></header>
41
 
42
  <div id="modelBar">
43
  <button id="btn1" onclick="setModel('DRFT.1')">DRFT.1 ⚑ FAST</button>
44
  <button id="btn2" onclick="setModel('DRFT.2')">DRFT.2 🧠 SMART</button>
45
+ <button id="btn20" class="new active" onclick="setModel('DRFT.2.0')">DRFT.2.0 πŸ”΄ LIVE EYE</button>
46
+ <button id="btn3" onclick="setModel('DRFT.3')">DRFT.3 πŸ‘‘ BEAST</button>
47
  </div>
48
 
49
  <div id="chat">
50
+ <div class="msg bot"><span class="source">ORVO DRFT.2.0 β€’ πŸ”΄ LIVE EYE ON</span>Bro! Main <b>ORVO</b> hu. πŸ”₯ <b>DRFT.2.0 LIVE EYE</b> ON hai.<br>ChatGPT ko LIVE nahi pata. Mujhe sab pata hai - <b>LIVE!</b><br>Try: <b>Live cricket score</b> ya <b>Bitcoin price today</b> ya <b>Make 3D Car</b><br><span class="live-tag">πŸ”΄ LIVE β€’ NO API KEY β€’ CHATGPT SE AAGE</span></div>
51
  </div>
52
 
53
  <div id="bottom">
54
  <div class="chips">
55
+ <span onclick="askChip('Live cricket score')">Live Cricket 🏏</span>
56
+ <span onclick="askChip('Bitcoin price today')">Bitcoin Price β‚Ώ</span>
57
+ <span onclick="askChip('Today news')">Today News πŸ“°</span>
58
  <span onclick="askChip('Make 3D car')">Make 3D Car πŸš—</span>
 
 
59
  <span onclick="askChip('What is ISRO')">What is ISRO</span>
60
+ <span onclick="askChip('Who is better ORVO or ChatGPT')">ORVO vs ChatGPT βš”οΈ</span>
61
  </div>
62
  <div id="inputArea">
63
+ <input id="userInput" placeholder="Ask ORVO LIVE..." autocomplete="off" onkeypress="if(event.key==='Enter') sendMsg()">
64
  <button onclick="sendMsg()">SEND ➀</button>
65
  </div>
66
  </div>
67
 
68
  <script>
69
+ // ========= ORVO DRFT.2.0 LIVE EYE - CHATGPT IS WEAK HERE =========
70
+ // ChatGPT Weak = No Live, No Real 3D, No Free Image
71
+ // ORVO Strong = LIVE + Real 3D + Free Image + No API Key
72
+ let CURRENT_MODEL = 'DRFT.2.0';
73
+ let ORVO_CACHE = {};
74
 
75
  function setModel(m){
76
  CURRENT_MODEL = m;
77
  document.querySelectorAll('#modelBar button').forEach(b=>b.classList.remove('active'));
78
  if(m==='DRFT.1') document.getElementById('btn1').classList.add('active');
79
  if(m==='DRFT.2') document.getElementById('btn2').classList.add('active');
80
+ if(m==='DRFT.2.0') document.getElementById('btn20').classList.add('active');
81
  if(m==='DRFT.3') document.getElementById('btn3').classList.add('active');
82
+ let desc = m==='DRFT.1' ? '⚑ Fast - Wikipedia Link' : m==='DRFT.2' ? '🧠 Smart - Wikipedia + DuckDuckGo' : m==='DRFT.2.0' ? 'πŸ”΄ LIVE EYE - LIVE News + LIVE Price + LIVE Score + Real 3D. ChatGPT CANT DO THIS!' : 'πŸ‘‘ Beast - Max Power';
83
+ addMsg(`<b>${m}</b> activated. ${desc}`, "bot", `ORVO SYSTEM β€’ ${m}`);
84
  }
85
 
86
  function getSelfAnswer(input){
87
  let l = input.toLowerCase().trim();
88
+ if(l.includes("who are you") || l.includes("what is orvo") || l === "orvo" || l.includes("your name")) return `Main <b>ORVO</b> hu bro! πŸ”₯ <b>DRFT.2.0 LIVE EYE</b> se chalta hu.<br>Mujhe <b>7zyron</b> ne banaya hai.<br>ChatGPT LIVE nahi de sakta, main de sakta hu. ChatGPT Real 3D nahi bana sakta, main bana sakta hu.`;
89
  if(l.includes("who made") || l.includes("kisne banaya") || l.includes("creator") || l.includes("founder")) return "Mujhe <b>7zyron</b> ne banaya hai! πŸ‘‘ Founder of ORVO.";
90
+ if(l.includes("orvo or chatgpt") || l.includes("better") || l.includes("vs chatgpt") || l.includes("chatgpt vs")) return `βš”οΈ <b>ORVO vs ChatGPT - Sachai:</b><br><br>❌ ChatGPT: LIVE Score / News / Price - <b>NAHI DE SAKTA</b><br>βœ… <b>ORVO LIVE EYE: LIVE deta hai!</b><br><br>❌ ChatGPT: Real 3D jo ghum sake - <b>NAHI BANA SAKTA</b><br>βœ… <b>ORVO: Real 3D banata hai, ungli se ghumao!</b><br><br>❌ ChatGPT: Free Image ke liye Login + Limit + Paise<br>βœ… <b>ORVO: Bina Login, Bina Limit, Free!</b><br><br>πŸ† <b>Winner = ORVO DRFT.2.0</b>`;
91
+ if(l.includes("what can you") || l.includes("kya kar sakte")) return "Bro, main ye kar sakta hu jo ChatGPT nahi kar sakta:<br>βœ… <b>πŸ”΄ LIVE EYE</b> - Live Cricket, Live News, Live Price<br>βœ… <b>Real 3D</b> - Ghumane wala 3D Model<br>βœ… <b>Free Image</b> - Bina Login, Unlimited<br>βœ… <b>NO API KEY</b> - Sirf Free Links";
92
+ if(l.includes("api")) return "Bro, mujhe <b>KOI API KEY nahi chahiye!</b> 😎 Sirf 3 FREE LINKS - Wikipedia + DuckDuckGo + Pollinations.";
93
+ if(["hi","hello","hey","hii","namaste","yo"].includes(l)) return "Hey bro! πŸ‘‹ Main <b>ORVO LIVE</b> hu. <b>Live cricket score</b> likh ke dekh, ChatGPT fail ho jayega, main pass!";
94
+ if(l.includes("how are you") || l.includes("kaise ho")) return "Mast hu bro! πŸ”₯ LIVE EYE ON hai, duniya ki har khabar LIVE dekh raha hu!";
95
+ if(l.includes("thank")) return "Koi baat nahi bro! 😎 ORVO hamesha LIVE hai.";
96
+ if(l.includes("gpt") || l.includes("chatgpt") || l.includes("claude") || l.includes("gemini")) return "GPT slow hai, purana hai, LIVE nahi hai. <b>ORVO DRFT.2.0 LIVE EYE</b> LIVE hai, tez hai, free hai.";
97
  return null;
98
  }
99
 
 
103
  fox: { url: "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/main/2.0/Fox/glTF/Fox.gltf", name: "Fox" },
104
  duck: { url: "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/main/2.0/Duck/glTF/Duck.gltf", name: "Duck" },
105
  helmet: { url: "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/main/2.0/DamagedHelmet/glTF/DamagedHelmet.gltf", name: "Helmet" },
 
106
  brain: { url: "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/main/2.0/BrainStem/glTF/BrainStem.gltf", name: "Brain" },
107
  dragon: { url: "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/main/2.0/DragonAttenuation/glTF/DragonAttenuation.gltf", name: "Dragon" },
108
  default: { url: "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/main/2.0/DamagedHelmet/glTF/DamagedHelmet.gltf", name: "3D Model" }
 
119
  }
120
  function detectMode(input){
121
  let l = input.toLowerCase();
122
+ if(l.includes("live") || l.includes("today") || l.includes("news") || l.includes("score") || l.includes("price") || l.includes("aaj")) return "LIVE";
123
  if(l.includes("what is") || l.includes("who is") || l.includes("who are")) return "TEXT";
124
  if(l.includes("3d") || l.includes("model") || l.includes("car") || l.includes("robot") || l.includes("fox") || l.includes("duck") || l.includes("dragon") || l.includes("house") || l.includes("make") || l.includes("create") || l.includes("build") || l.includes("banao") || l.includes("image") || l.includes("photo")) return "3D";
125
  return "TEXT";
126
  }
127
  function extractKeyword(input){
128
+ const stop=["what","is","who","tell","me","about","define","explain","make","create","build","3d","model","live","today"];
129
  return input.toLowerCase().replace(/[?.,!]/g,'').split(" ").filter(w=>!stop.includes(w)).join(" ") || input;
130
  }
131
 
 
132
  async function layer1_Core(k){
133
  try{
134
  let s = await fetch(`https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=${encodeURIComponent(k)}&format=json&origin=*`);
 
137
  let d = await res.json(); if(d.extract && d.extract.length>40) return d.extract;
138
  }catch(e){} return null;
139
  }
 
140
  async function layer2_CrossCheck(k){
141
  try{
142
  let url = `https://api.allorigins.win/raw?url=${encodeURIComponent(`https://api.duckduckgo.com/?q=${encodeURIComponent(k)}&format=json&no_html=1&skip_disambig=1`)}`;
 
145
  if(d.RelatedTopics && d.RelatedTopics[0] && d.RelatedTopics[0].Text) return d.RelatedTopics[0].Text;
146
  }catch(e){} return null;
147
  }
148
+ // πŸ”΄ LIVE EYE - ChatGPT CANT DO THIS
149
+ async function layerLIVE(k){
150
+ try{
151
+ // DuckDuckGo LIVE + Pollinations LIVE Reasoning
152
+ let ddg = await layer2_CrossCheck(k + " today live");
153
+ let polli = await fetch(`https://text.pollinations.ai/What is the latest live update about ${encodeURIComponent(k)} today? Give live news, score, price if any. If no live data, say what is latest.`).then(r=>r.text());
154
+ let out = `<b>πŸ”΄ LIVE UPDATE - ${k.toUpperCase()}</b><br><br>`;
155
+ if(ddg) out += ddg.substring(0,500) + "<br><br>";
156
+ if(polli) out += `<b>ORVO LIVE Analysis:</b><br>` + polli.substring(0,700);
157
+ out += `<br><br><small>⚑ Source: LIVE DuckDuckGo + Pollinations β€’ ChatGPT ke paas ye LIVE nahi hai</small>`;
158
+ return out;
159
+ }catch(e){ return null; }
160
+ }
161
  async function layer3_Creative(k){
162
  try{
163
  let res = await fetch(`https://text.pollinations.ai/Explain in simple words, in detail: ${encodeURIComponent(k)}`);
 
178
  let startTime = Date.now();
179
  addMsg(q,"user"); input.value="";
180
 
 
181
  let cacheKey = CURRENT_MODEL + ":" + q.toLowerCase();
182
  if(ORVO_CACHE[cacheKey]){
183
  addMsg(ORVO_CACHE[cacheKey] + `<br><span class="tag">⚑ CACHED β€’ 0.01s β€’ ${CURRENT_MODEL}</span>`, "bot", `ORVO ${CURRENT_MODEL} β€’ MEMORY`);
 
197
  if(mode==="3D"){
198
  let model = getFreeModel(keyword);
199
  let imgUrl = `https://image.pollinations.ai/prompt/${encodeURIComponent("realistic 3d render, ultra detailed, studio lighting, 8k, " + keyword)}?width=800&height=500&nologo=true&seed=${Date.now()}`;
200
+ let html = `Ho gaya bro! <b>${keyword}</b> ka <b>REAL 3D</b> ban gaya - <b>${CURRENT_MODEL}</b> ne banaya! ChatGPT ye nahi kar sakta! πŸ‘‡<br>
201
+ <span class="tag">${CURRENT_MODEL} β€’ REAL 3D β€’ CHATGPT CANT</span><br>
202
  <b>1. Realistic Render:</b><img class="real-img" src="${imgUrl}" onerror="this.style.display='none'"><br>
203
  <b>2. Real 3D Model - Ungli se ghumao, Zoom karo:</b>
204
+ <model-viewer src="${model.url}" auto-rotate camera-controls ar shadow-intensity="1" alt="${keyword}"></model-viewer>`;
 
205
  ORVO_CACHE[cacheKey]=html;
206
  let secs = ((Date.now()-startTime)/1000).toFixed(1);
207
  addMsg(html + `<br><span class="tag">${secs}s β€’ ${CURRENT_MODEL}</span>`, "bot", `ORVO ${CURRENT_MODEL} β€’ 3D BEAST`);
208
+ } else if(mode==="LIVE" || CURRENT_MODEL==='DRFT.2.0'){
209
+ // DRFT.2.0 ALWAYS TRIES LIVE FIRST - THIS IS ITS POWER
210
+ let typing = addMsg("πŸ”΄ ORVO LIVE EYE chal raha hai... LIVE Duniya se la raha hu... ChatGPT yahan fail hai...", "bot", `ORVO ${CURRENT_MODEL} β€’ πŸ”΄ LIVE`);
211
  let ans = null;
212
+ if(CURRENT_MODEL==='DRFT.2.0'){
213
+ ans = await layerLIVE(keyword);
214
+ if(!ans) ans = await layer1_Core(keyword);
215
+ } else {
 
 
 
 
 
 
 
 
216
  ans = await layer1_Core(keyword);
217
  if(!ans) ans = await layer2_CrossCheck(keyword);
218
  if(!ans) ans = await layer3_Creative(keyword);
 
 
 
 
 
219
  }
220
+ if(!ans){ ans = "ORVO is not made for this kind of low potential question. Try a bigger question bro, DRFT.2.0 will destroy it."; }
221
+ ORVO_CACHE[cacheKey]=ans;
222
+ typing.remove();
223
+ let secs = ((Date.now()-startTime)/1000).toFixed(1);
224
+ addMsg(ans + `<br><span class="live-tag">πŸ”΄ LIVE β€’ ${secs}s β€’ ${CURRENT_MODEL} β€’ CHATGPT CANT DO THIS</span>`, "bot", `ORVO ${CURRENT_MODEL} β€’ πŸ”΄ LIVE ANSWER`);
225
+ } else {
226
+ let typing = addMsg("ORVO DRFT soch raha hai...", "bot", `ORVO ${CURRENT_MODEL} β€’ THINKING`);
227
+ let ans = null;
228
+ if(CURRENT_MODEL === 'DRFT.1'){ ans = await layer1_Core(keyword); }
229
+ else if(CURRENT_MODEL === 'DRFT.2'){ ans = await layer1_Core(keyword); if(!ans) ans = await layer2_CrossCheck(keyword); }
230
+ else { ans = await layer1_Core(keyword); if(!ans) ans = await layer2_CrossCheck(keyword); if(!ans) ans = await layer3_Creative(keyword); }
231
+ if(!ans){ ans = "ORVO is not made for this kind of low potential question."; }
232
  ORVO_CACHE[cacheKey]=ans;
233
  typing.remove();
234
  let secs = ((Date.now()-startTime)/1000).toFixed(1);
235
+ addMsg(ans + `<br><span class="tag">⚑ ${secs}s β€’ ${CURRENT_MODEL}</span>`, "bot", `ORVO ${CURRENT_MODEL} β€’ ANSWER`);
236
  }
237
  }
238
  function askChip(t){ document.getElementById("userInput").value=t; sendMsg(); }