Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add keep alive strategy for ollama api #391

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mok-liee
Copy link

@mok-liee mok-liee commented Oct 4, 2024

hi, because of the default unload time of 5m with the ollama API, it might be useful to be able to configure the keepalive strategy of ollama. here is a suggestion with 3 values for the time being. i can also imagine a slider. what is your opinion?

TODO

  • unload forever models on backend shutdown
  • track loaded forever models (only those loaded by perplexica) with the ability to unload them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant