updated docs

This commit is contained in:
Amith Koujalgi 2023-12-26 17:57:51 +05:30
parent 0b9785a5d4
commit 2e0e801533

View File

@ -43,9 +43,9 @@ The command runs the Ollama server locally at **http://localhost:11434/**.
### Setup your project ### Setup your project
Get started by **creating a new Maven project** on your favorite IDE. Get started by **creating a new project** on your favorite IDE.
Add the dependency to your project's `pom.xml`. If you're on Maven, add the dependency to your project's `pom.xml`.
```xml ```xml
@ -56,6 +56,14 @@ Add the dependency to your project's `pom.xml`.
</dependency> </dependency>
``` ```
If you're on Gradle, add the following to your `build.gradle`:
```gradle
dependencies {
implementation 'io.github.amithkoujalgi:ollama4j:1.0.27'
}
```
Create a new Java class in your project and add this code. Create a new Java class in your project and add this code.
```java ```java