Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This extension adds the functionality to your project to easily send requests to the "Ollama" AI, and get responses from it.
How to host your own server
ollama pull llama3
(Note: Althoughllama3
is the newest version and I recommend you to use this one, you can select any other model offered on the Ollama website, just switch thellama3
to any other model name they listed there: https://ollama.com/library)ollama run llama3
(Note: Again, you can use any model name here that you have installed instead ofllama3
)If you are stuck, NetworkChuck has a really cool video explaining everything you have to know for hosting your own server, I also followed this video to get mine working: https://youtu.be/Wjrdr0NU4Sk?t=182
How to customize models
You can read the official documentation for this on the official Ollama GitHub repo: https://github.com/ollama/ollama?tab=readme-ov-file#customize-a-prompt
How to use the extension
Create a simple action to send the following data to a Ollama AI server:
Here is an example action I also used in the example project
Caution
The speed of the response generation depends on the hardware the server is hosted on.
Checklist
What tier of review do you aim for your extension?
Reviewed
Example file
OllamaAIExample.zip
Extension file
OllamaAI.zip