I was looking to set up some personal tools using the free local AI tool/server LM Studio (https://lmstudio.ai/). Although it is a bit slow on my wimpy laptop there are no limits like tokens or credits. As I was doing it I decided a module like the one in the examples for Grok would be nice. Since there are other developers that could do cool things with it. I thought it would be nice to share.
You can download the source at http://KCG-Software.com and look for “KCG LM Studio”