Pārlūkot izejas kodu

Update README.md

Bruce MacDonald 1 gadu atpakaļ
vecāks
revīzija
bfae760179
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      README.md

+ 6 - 0
README.md

@@ -20,6 +20,12 @@ const response = await ollama.chat({
 console.log(response.message.content)
 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
 ## 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.
 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.