diff --git a/include/ollama.hpp b/include/ollama.hpp index de81f38..2fad3e6 100644 --- a/include/ollama.hpp +++ b/include/ollama.hpp @@ -374,7 +374,7 @@ class Ollama } Ollama(): Ollama("http://localhost:11434") {} - ~Ollama() {} + ~Ollama() { delete this->cli; } // Generate a non-streaming reply as a string. ollama::response generate(const std::string& model,const std::string& prompt, const json& options=nullptr, const std::vector& images=std::vector())