From 0249ab83775861f549abb1aa80af0ca3614dc5ff Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 22 Aug 2024 19:10:06 -0700 Subject: [PATCH] Use anthropic-dangerous-direct-browser-access: true Now talks to the Anthropic API directly using their new anthropic-dangerous-direct-browser-access: true header. Also shows a "Generating..." message. Code change mostly by Claude: https://gist.github.com/simonw/6ff7bc0d47575a53463abc3482608f74 --- haiku.html | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/haiku.html b/haiku.html index 18e01bc..00bce73 100644 --- a/haiku.html +++ b/haiku.html @@ -36,6 +36,18 @@ max-height: 80%; overflow: auto; } + #generating { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + color: white; + background-color: rgba(0, 0, 0, 0.7); + padding: 10px; + border-radius: 5px; + display: none; + font-family:'Courier New', Courier, monospace; + } @@ -87,6 +99,7 @@

+    
Generating...