Sai(lfish) Large Language Models
right now lots of stuff is broken. ollama and openai/chatgpt backends are supported at the moment. only default set of tools is available, which only includes flashlight for now.
you NEED to setup a backend for this to work
register as chat gpt developer and gather an api key, go to settings, set backend as openai and api key as api key. if you don't know what base url means you should not touch it probably
- download ollama to your computer with the script they provide here https://ollama.com/download
- run
sudo systemctl edit ollama
, orsudo SYSTEMD_EDITOR=editor systemctl edit ollama
replacing editor with your favourite text editor - in the opened editor add the following between these comments
### Editing /etc/systemd/system/ollama.service.d/override.conf ### Anything between here and the comment below will become the contents of the drop-in file [Service] Environment="OLLAMA_HOST=0.0.0.0" Environment="OLLAMA_ORIGINS=*" Environment="OLLAMA_NUM_PARALLEL=1" ### Edits below this comment will be discarded
- save file and close the editor
sudo systemctl restart ollama
- open app, go to settings, set backend as ollama
- as host set "http://x.x.x.x:11434", replacing x.x.x.x with your computer's IP address/hostname (if you're using local IP/hostname your phone will need to be on the same network as computer)
By default, you will have no models in ollama. Currently you have to manually download them.
To do so, run ollama pull model
, replacing model with model name.
For tools, it is recommended to use ejschwar/llama3.2-better-prompts:latest
model. It is llama3.2 with modified system prompt, with which, when tools are enabled, it can still answer questions which don't require tool interaction.
After setting up the backend, you can swipe left and right to switch between models. You can enable tools for a request by toggling the button at the bottom.
- App will misbehave if you clear history or send new message while a request is pending
- Sometimes app might misbehave if you switch model while a request is pending
- Whisperfish/Jolla Messages: messages background