STORY
Sats to Chat
AUTHOR
Joined 2023.07.07
PROJECT
DATE
VOTES
sats
COMMENTS

Sats to Chat

Sats to Chat - a WebLN enabled ChatGPT client.

31 days ago I knew nothing about WebLN or L402...

I am still scratching the surface but the Bolt Hackathon has exposed me to enough new ideas and knowledge to move forward with 'Laser Focus' ™ (Michael Saylor).

https://replit.com/@RGGH/chatsats

Begin:

I spent an entire Saturday in early July copying/hacking code from https://webln.twentyuno.net/ - I got my own 'version' of this working once I'd signed up for getalby.com and added it as a browser extension (I use 'Brave' on Linux Mint).

Wrapping Flask Apps with L402s kind of got me interested in making something in Replit but I had already learned LangChain agents, chains, tools etc so decided to see if I could link WebLN payments with ChatGPT and get payment for each API request made via my own yet-to-be-written Python API.

Middle:

I wanted to 'just get it working' rather than get bogged down making it production grade. I confess to not adding the features and functionality to do Math, PAL and other nice to haves with the LangChain side of things as I diverted my attention to a crash course in Node.js

I also made a streamlit app in Python to teach myself the creation and flow of Macaroons. Aperture does seem like the solution I should have chosen to handle the reverse proxy side of things but I had issues with installing the correct version of "Go" and setting the correct parameters inside its YAML config.

<iframe class="remirror-iframe remirror-iframe-youtube" src="https://www.youtube-nocookie.com/embed/l-RTcj9Uh5M?" data-embed-type="youtube" allowfullscreen="true" frameborder="0"></iframe>

What next? Become proficient with Node.js and experiment some more with Voltage (now that I have access to it, using the coupon code #AI4all). I am also fascinated to explore how one AI agent can pay another one as long as it has the budget.

(Not) End:

AI4ALL: LangChain BitcoinTools Tutorial