<html> <body> <script src="https://js.puter.com/v2/"></script> <script> async function streamClaudeResponse() { const response = await puter.ai.chat( "Write a detailed essay on the impact of artificial intelligence on society", {model: 'claude-3-5-sonnet', stream: true} ); for await (const part of response) { puter.print(part?.text); } } streamClaudeResponse(); </script> </body> </html>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter