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

Add keep alive field into ollama requests. #158

Open
s-kostyaev opened this issue Feb 16, 2025 · 2 comments
Open

Add keep alive field into ollama requests. #158

s-kostyaev opened this issue Feb 16, 2025 · 2 comments

Comments

@s-kostyaev
Copy link
Contributor

We need to add "keep_alive" option to ollama requests to be able to control model lifecycle in memory.

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

Relates to s-kostyaev/ellama#160

@s-kostyaev
Copy link
Contributor Author

We can't use :default-chat-non-standard-params here because this option at the top level of request object.

@ahyatt
Copy link
Owner

ahyatt commented Feb 17, 2025

I think we could probably use it if we specially handle this particular variable in making the request. I'll take a look at this soon.

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

No branches or pull requests

2 participants