A JavaScript wrapper for the Ollama API.
npm install ollamajsimport ollama from 'OllamaJS';
const prompt = 'Suggest me a book to read';
const response = ollama.getResponse(prompt);
console.log(response);Run tests with the following command:
npm testThis project is licensed under the Creative Commons CC0 1.0 Universal License.