huggingface / chat-ui

Open source codebase powering the HuggingChat app
https://huggingface.co/chat
Apache License 2.0
7.31k stars 1.06k forks source link

Send `ollama pull` request if model is not available locally #1227

Closed nsarrazin closed 4 months ago

nsarrazin commented 4 months ago

Before you had to ollama pull [whatevermodel] manually in ollama. I wanted a single deployment with ollama+chat-ui where I didn't have to run any commands.

This PR handles the downloading of the model directly from the endpoint if needed.