rizerphe / obsidian-companion

Autocomplete your obsidian notes with AI, including ChatGPT, through a copilot-like interface.
MIT License
189 stars 23 forks source link

Instructions to setup oobabooga backend #22

Open albertopirillo opened 8 months ago

albertopirillo commented 8 months ago

It seems that, even if not mentioned everywhere in the readme, oobabooga support was added in #13 by @kabachuha. Apparently you guys managed to get it working (correct me if I am wrong), but unfortunately I cannot.

Could you provide some instructions to link obsidian-companion with text generation webui? I have a working setup of oobabooga with a model loaded which I can use to chat. I have started the OpenAI-compatible oobabooga API with the flags --api --listen.

However, I do not understand how to configure the Companion from Obsidian settings. I have already tried with multiple IPs into the API URL field, but none seems to work.

Alexandrsv commented 7 months ago
oobabooga integration is boken ![image](https://github.com/rizerphe/obsidian-companion/assets/15097064/e79d12b4-6779-4a80-a9ac-74416fcc400d)
albertopirillo commented 7 months ago

Yes, and that's because HTTP requests are being sent to incorrect URLs. Take a look at this code, which is supposed to retrieve completions from the oobabooga API. The URLs are way different from the ones in the oobabooga's API guide. Maybe they were made for an older version and were never updated.