mirror of
https://github.com/PragmaticMachineLearning/probly.git
synced 2026-01-11 22:38:10 -05:00
Add support for Ollama (and other compatible endpoints) #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wbste on 3/7/2025
EDIT: After trying a lot of models on Ollama I couldn't get a single one to work (even though they all support tools). I'll play some more with system prompts and the like, but for now this may not be worthwhile. I know Ollama's SDK supports "forcing" tool use, whereas the OpenAI-compat. endpoint doesn't have the same feature. For anyone else who tries this keep in mind the system prompt is 2600 tokens, so you need to adjust the Modelfile (or env. variable now) to set a larger default than 2048 (for Ollama). Maybe someone else can play with it and see if you get better results?
A lot of the open source community likes to dabble in self-hosted AI models. I'm still looking over the code, but I think if you add the following here:
Then create a
.envand update
docker-compose.ymlYou can use Ollama for the AI. I'm still playing around with finding any models smart enough to work with the prompts, however.