C-Loftus / talon-ai-tools

Query LLMs and AI tools with voice commands
http://colton.place/talon-ai-tools/
MIT License
46 stars 17 forks source link

Refactored to use typed dicts. Removed stale code #144

Closed C-Loftus closed 1 month ago

C-Loftus commented 1 month ago

Kept same behavior the same as far as I can tell.

I am using TypeDict so we keep all the methods within the standard dict class. Was considering creating a super class for the message and inheriting from it but I think this abstraction does not actually benefit and adds boilerplate.

C-Loftus commented 1 month ago

Have not tested this yet. Feel free to test if you want. Going to take a break for a bit.

C-Loftus commented 1 month ago

Believe this should be good now. Tested with threading / context / images etc, and doesn't seem to have any regressions. The threading is very cool thank you for your work on this. I find it works well. I will add funcitonality to have the imgui window auto-update with a new thread response once this merged.

jaresty commented 1 month ago

I'll use this branch for a while. Looks good though!