소스 검색

Update README.md

Bruce MacDonald 1 년 전
부모
커밋
bfae760179
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      README.md

+ 6 - 0
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.