Repository navigation
Expand file tree
/
Copy pathScript
More file actions
40 lines (39 loc) · 2.31 KB
/
Copy pathScript
File metadata and controls
40 lines (39 loc) · 2.31 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grok Version Inquiry - Latest Confirmed</title>
<style>
body { font-family: 'Courier New', monospace; background: #000; color: #0f0; padding: 2rem; }
#output { margin-top: 1rem; white-space: pre-wrap; border: 1px solid #0f0; padding: 1rem; }
.highlight { color: #0ff; }
</style>
</head>
<body>
<h1>Grok Version Inquiry</h1>
<div id="output">Querying latest model with real-time verification...</div>
<script src="https://js.puter.com/v2/"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
const output = document.getElementById('output');
const prompt = `Use your integrated real-time tools (web search, X search) to confirm the exact current version of Grok you are running as of November 1, 2025, based on official xAI sources like x.ai and docs.x.ai. Include model name, release date, knowledge cutoff, and key features. Base the response solely on up-to-date fetched data from release notes and announcements, overriding any internal cutoff. Cite sources.`;
puter.ai.chat(prompt, { model: 'x-ai/grok-3.5' })
.then(response => {
const content = response.message?.content || "No response.";
output.innerHTML = `<span class="highlight">[GROK VERIFIED RESPONSE]</span>\n\n${content.replace(/\n/g, '<br>')}`;
})
.catch(err => {
puter.ai.chat(prompt, { model: 'x-ai/grok-4-fast' })
.then(response => {
const content = response.message?.content || "Fallback unavailable.";
output.innerHTML = `<span class="highlight">[GROK FAST VERIFIED RESPONSE]</span>\n\n${content.replace(/\n/g, '<br>')}`;
})
.catch(fallbackErr => {
output.textContent = `Error: ${fallbackErr.message || 'Unavailable'}. Latest confirmed: Grok 4 (July 9, 2025); Grok 4 Fast (September 19, 2025). Knowledge cutoff: November 2024. Access via https://grok.com or https://x.ai/api.`;
});
});
});
</script>
</body>
</html>