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
Author
Ian Johnson
@enjalot
pixel flipper, data sifter. trying to see what I can while I'm here
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
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Public
Forum
Bluesky
YouTube
X
Observable
Sign up
Coding with Fire
Ian Johnson
4
Reply
Add comment
Subscribe to notifications
6
GPT-3 Encoder | Coding with Fire | Observable