clairefro / obsidian-chat-cbt-plugin

AI-powered journaling plugin for your Obsidian notes, inspired by cognitive behavioral therapy
https://obsidian.md/plugins?search=chatcbt
MIT License
172 stars 11 forks source link

[Feature Request] add support for LM Studio #10

Open flowingblaze opened 5 months ago

flowingblaze commented 5 months ago

The current two options of the plugin is Ollama and ChatGPT, but I was wondering if you could add support to use LM studio?

clairefro commented 4 months ago

Thanks for raising a feature request!

Looks like LM Studio has an API identical to OpenAI's, so should be easy to implement. It would take a little re-engineering of the settings UI which I need to think through a bit.

If you need this immediately, you can fork the repo and replace OpenAI API call's base URL with the LM Studio local URL, and run the plugin in development mode on your machine

Otherwise, if you'd like to play around with local models in the meantime, check out Ollama mode!