ollama/cli is a Clojure library designed to simplify and abstract the interaction with the Ollama system. This library provides a high-level API to facilitate easy access to Ollama's functionalities, hiding the complexities involved in the direct use of the Ollama system.
Whether you're building applications that depend on Ollama or scripting automated tasks, ollama-cli offers a convenient Clojure interface that enhances productivity and reduces boilerplate code.
Before you can use ollama/cli, ensure you have Clojure and Leiningen installed on your machine:
Under progress to publish.
Here is a basic example of how to use ollama/cli in your Clojure application:
'(:require [ollama.cli.chat :as chat])
(def messages
[{:role "user"
:content "Why is the sky blue?"}])
(def model "phi3")
(def response (chat/chat! model messages))
(doseq [chunk response]
(print (str chunk)))
Further documentation detailing all functions and their usage is available under the doc directory.
Contributions to ollama-cli are welcome and appreciated. Please refer to the CONTRIBUTING.md for guidelines on how to make contributions.
ollama-cli is open source and is licensed under the MIT License. See the LICENSE file for more details.
If you encounter any issues or have questions, feel free to open an issue on the project's GitHub repository or contact the maintainers directly.
Thank you for using or considering ollama-cli!
Can you improve this documentation? These fine people already did:
robson.santos, robson.silva & Robson Silva dos SantosEdit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |