tmc / langchaingo

LangChain for Go, the easiest way to write LLM-based programs in Go
https://tmc.github.io/langchaingo/
MIT License
3.78k stars 523 forks source link

The ollama api add new “keep_alive” paramater #778

Open LainNetWork opened 2 months ago

LainNetWork commented 2 months ago

Hello, I'm new to this project. Your wrapped Ollama client is really handy!However, I noticed that there are a few new fields added compared to the latest Ollama documentation. Could you please update it to accommodate these changes? https://github.com/ollama/ollama/commit/128fce54953f355adb8921662a175a30a0c38494 image

LainNetWork commented 2 months ago

Actually, I really need the newly added keep_alive field. The default 5-minute interval provided by Ollama is too short for my needs, and I'd like to customize it.