Adds Ollama and OpenWebUI services as tools #351
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.
Changelog
These both tools should work together. But we can use Ollama without the OpenWebUI tool (in case we're using Ollama in an application).
To run the Ollama tool (use defaults):
php ./takeout enable ollama
To run the OpenWebUI (use defaults):
php ./takeout enable openwebui
This should start Ollama at port
11434
and OpenWebUI at port3000
.Open http://localhost:3000 (it takes a while for OpenWebUI to load), navigate to the top-right corner Admin Panel menu:
Screenshot
Then, to the Settings -> Models section, choose a model (like
llama3
), then hit the download button... this will take a while...Screenshot
Once it's done downloading, you can hit "New Chat" at the top-left corner, then choose the downloaded model in the model dropdown, then use it
Screenshots