iansinnott / prompta

ChatGPT UI that is keyboard-centric, mobile friendly, and searchable.
https://chat.prompta.dev
MIT License
154 stars 13 forks source link

Add support for custom base urls and model names #13

Closed iansinnott closed 9 months ago

iansinnott commented 9 months ago

This makes it possible to use Prompta as a client with local LLMs.

One way to do this is to use Ollama together with LiteLLM. For example:

# (run each command in a separate terminal)
ollama serve
ollama pull llama2-uncensored
litellm --api_base http://localhost:11434

You can then set the base url in Prompta's settings to http://<your-ollama-ip>:8000/v1, set the model name to ollama/llama2-uncensored and chat with llama2-uncensored using Prompta.


via #12