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: Support for Ollama keep_alive API parameter #237

Merged
merged 2 commits into from
Jan 22, 2025

Conversation

mpope9
Copy link
Contributor

@mpope9 mpope9 commented Jan 22, 2025

This API parameter should keep the model "warm" in memory. Otherwise after 5 minutes it is unloaded, and can be expensive to re-load.

Relevant docs: https://github.com/ollama/ollama/blob/main/docs/faq.md#how-do-i-keep-a-model-loaded-in-memory-or-make-it-unload-immediately

@brainlid brainlid merged commit 0c10c33 into brainlid:main Jan 22, 2025
1 check passed
@brainlid
Copy link
Owner

Nice! Thanks for the enhancement!
❤️💛💙💜

brainlid added a commit to montebrown/langchain that referenced this pull request Jan 22, 2025
* main:
  feat: Support for Ollama keep_alive API parameter (brainlid#237)
  support for o1 OpenAI model (brainlid#234)
  minor test cleanup
  phi_4 chat template support fix after merge
  feat: apply chat template from callback (brainlid#231)
  Add Bumblebee Phi-4 (brainlid#233)
  updated changelog
  update version and docs outline (brainlid#229)
  fix: enable verbose_deltas (brainlid#197)
  feat: Enable :inet6 for Req.new (brainlid#227)
  Breaking change: consolidate LLM callback functions (brainlid#228)
@mpope9 mpope9 deleted the feat/ollama_keep_alive branch January 23, 2025 00:28
@mpope9
Copy link
Contributor Author

mpope9 commented Jan 23, 2025

Thank you for this library!

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.

2 participants