Hey!
Added web search integration, a settings menu, and I’m working on an admin page!
I also added text formatting, which was a pain to test with the 0.5B model because of how disobedient it can be 
I plan to allow the user to change the API route (and key) through a locked admin page.
I’m working through security issues with that, and spent a fair amount of time thinking of how to fix that.
My current plan is:
Generate a secret “key” during setup that unlocks the admin page.
When the user visits the page, ask them for the key to submit the changes.
If the user hasn’t been authenticated, do not allow them to change settings. The main concern is that they could use devtools to just toggle the variable, hence fetching it directly within the function.
I think it’ll work, but I’ll need to do some testing. :)
I also added a little icon if the user hasn’t got a Tavily API key for web search functionality.
The image currently shows the route editable within the client side. I might go with that and have the same logic behind it on the home page instead of a separate /admin page.
In all honesty, I’m kinda overwhelmed. This is the biggest project I’ve ever made, and I feel like I keep accidentally switching features and missing stuff out.
Anyway, it’s still really fun, so I’m still going for that Flipper Zero and TRMNL kit! :D
Thanks for reading!!!
It’s a really nice database package thingy! It has FireStore-like syntax but without the annoying stuff. :) I’ll definitely use it in future projects too! Anyway, using that I made a system to create, fetch, etc new chats! Now they’re stored in the database alongside their associated crypto-UUID key. That’s passed as a search parameter (kinda like YouTube videos!) and fetched, then the messages are loaded. I did way more that honestly can’t fit into this devlog, so that’s the main stuff out of the way. :)
I officially added authentication, and a full user system. :) I’ve started working on the design page. The UI is below… I spent about 30 minutes designing it in Lapse, but I’m personally not a fan