Update README.md

This commit is contained in:
Amith Koujalgi 2023-10-27 11:12:22 +05:30 committed by GitHub
parent 41d1fa5a27
commit c7d925d2b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,18 +2,12 @@
A Java wrapper for [Ollama](https://github.com/jmorganca/ollama/blob/main/docs/api.md) APIs.
Prerequisites:
- Docker
- Java 8+
Start Ollama Container:
```
docker run -v ~/ollama:/root/.ollama -p 11434:11434 ollama/ollama
```
Submit a question to Ollama using Ollama4j:
Post a question to Ollama using Ollama4j:
```java
String host = "http://localhost:11434/";