GPT-3 Encoder | Coding with Fire | Observable
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
Comments (2)
Simon Willison
Apr 27, 2023
This wasn't working for me. I changed it to this instead and it worked: byte_decoder = { let byte_decoder2 = {} Object.keys(byte_encoder).map(x => { byte_decoder2[byte_encoder[x]] = x }) return byte_decoder2; }
Ian Johnson
Apr 28, 2023
ah yes, the key part is the missing return. I think I only used it for encoding so didn't run into this. updated, thanks :)
Reply
Add comment
Subscribe to notifications
Observable
Sign in
Coding with Fire
Ian Johnson
4
6
GPT-3 Encoder | Coding with Fire | Observable