voideditor / void

https://voideditor.com
MIT License
5.02k stars 225 forks source link

Added Ollama integration #22

Open w1gs opened 2 days ago

w1gs commented 2 days ago

This PR adds in the Ollama integration. Two new settings were added for Ollama (endpoint and model). Instead of using the Ollama node library a fetch request directly to the provided endpoint is used. A local instance of the Ollama API can be started with the command ollama serve. The OLLAMA_ORIGINS=* environment variable needs to be set to allow the extension to make requests to Ollama.

andrewpareles commented 1 day ago

Nice! Will test this in a bit. It would be great to add setup instructions for this, just added #26.

w1gs commented 1 day ago

Nice! Will test this in a bit. It would be great to add setup instructions for this, just added #26.

Awesome. Where would be the best place to add the instructions to set that up?

mathewpareles commented 16 hours ago

It should probably appear in a new window when VS Code starts up, similar to the "Welcome" page. We're also open to alternatives. image