<!DOCTYPE html> <html> <head> <script type="text/javascript"…
- User
.message { color: black; }
.timestamp { color: gray; }
- Assistant
// Generate a random color for each user function getRandomColor() { var letters = '0123456789ABCDEF'; var color = '#'; for (var i = 0; i < 6; i++) { color += letters[Math.floor(Math.random() * 16)]; } return color; }
// Initialize Scaledrone and listen for messages const drone = new Scaledrone('YOUR_CHANNEL_ID'); const room = drone.subscribe('observable-room');
room.on('open', error => { if (error) { return console.error(error); } console.log('Connected to Scaledrone'); });
room.on('message', message => { const { data, clientId, timestamp } = message; const nickname = document.createElement('span'); nickname.classList.add('nickname'); nickname.style.color = getRandomColor(); nickname.textContent = data.nickname + ': ';
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.