From bfae760179343e6c7eb605e2983cb8c256bb212f Mon Sep 17 00:00:00 2001 From: Bruce MacDonald Date: Tue, 27 Feb 2024 17:57:48 -0500 Subject: [PATCH] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 5dcfcbd..76b688a 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,12 @@ const response = await ollama.chat({ console.log(response.message.content) ``` +### Browser Usage +To use the library without node, import the browser module. +```javascript +import ollama from 'ollama/browser' +``` + ## Streaming responses Response streaming can be enabled by setting `stream: true`, modifying function calls to return an `AsyncGenerator` where each part is an object in the stream.