page-assist
page-assist copied to clipboard
`keep_alive` should be not sent if empty.
Currently keep_alive must have a value, which is sent to the ollama server. If the server has set OLLAMA_KEEP_ALIVE, this overrides the server setting. If the keep_alive field is empty, it should not be sent as part of the API call.
Hey, Page Assist uses LangChain. I think they are sending keep_alive if it's empty, with a default value when the field is empty.
You can set the value of OLLAMA_KEEP_ALIVE here so that all Ollama requests will always use the same default value (not empty)
Maybe page-assist needs to update its library dependencies then? I don't know how how bun works or how the langchain dependencies play out.
https://github.com/langchain-ai/langchainjs/pull/7337
Will fix it in tomorrow's release :)